Skip to content

Commit

Permalink
Merge pull request asutton#9 from pkeir/master
Browse files Browse the repository at this point in the history
Added -fconcepts switch which is needed in recent GCC.
  • Loading branch information
asutton authored Dec 13, 2016
2 parents abe171f + d99ca9b commit 4358f0d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ endif()

# ... and that concepts are included in C++1z.
# TODO: What happens when there are different versions of concepts?
set(CMAKE_REQUIRED_FLAGS -std=c++1z)
set(CMAKE_REQUIRED_FLAGS -fconcepts)
check_cxx_concepts(CXX_COMPILER_HAS_CONCEPTS)
if(NOT CXX_COMPILER_HAS_CONCEPTS)
message(FATAL_ERROR "${PROJECT_NAME} requires a C++ compiler that supports concepts.")
Expand Down
2 changes: 1 addition & 1 deletion origin.graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_library(origin-graph STATIC
adjacency_list.cpp
adjacency_vector.cpp)

target_compile_options(origin-graph PUBLIC -std=c++1z)
target_compile_options(origin-graph PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-graph
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-graph PUBLIC origin-core origin-range)
Expand Down
2 changes: 1 addition & 1 deletion origin.math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_library(origin-math STATIC
numeric.cpp
stats.cpp)

target_compile_options(origin-math PUBLIC -std=c++1z)
target_compile_options(origin-math PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-math
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")

Expand Down
2 changes: 1 addition & 1 deletion origin/algorithm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ add_library(origin-algorithm STATIC
quantifier.cpp
uninitialized.cpp)

target_compile_options(origin-algorithm PUBLIC -std=c++1z)
target_compile_options(origin-algorithm PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-algorithm
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-algorithm
Expand Down
2 changes: 1 addition & 1 deletion origin/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ add_library(origin-core STATIC
finally.cpp
type.cpp)

target_compile_options(origin-core PUBLIC -std=c++1z)
target_compile_options(origin-core PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-core
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")

Expand Down
2 changes: 1 addition & 1 deletion origin/data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_compiler_export_flags()
add_library(origin-data STATIC
vector.cpp)

target_compile_options(origin-data PUBLIC -std=c++1z)
target_compile_options(origin-data PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-data
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-data
Expand Down
2 changes: 1 addition & 1 deletion origin/iterator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_compiler_export_flags()
add_library(origin-iterator STATIC
core.cpp)

target_compile_options(origin-iterator PUBLIC -std=c++1z)
target_compile_options(origin-iterator PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-iterator
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-iterator PUBLIC origin-core)
Expand Down
2 changes: 1 addition & 1 deletion origin/memory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_library(origin-memory STATIC
memory.cpp
allocator.cpp)

target_compile_options(origin-memory PUBLIC -std=c++1z)
target_compile_options(origin-memory PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-memory
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-memory PUBLIC origin-core)
Expand Down
2 changes: 1 addition & 1 deletion origin/numeric/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_library(origin-numeric STATIC
numeric.cpp
algebra.cpp)

target_compile_options(origin-numeric PUBLIC -std=c++1z)
target_compile_options(origin-numeric PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-numeric
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-numeric PUBLIC origin-core)
Expand Down
2 changes: 1 addition & 1 deletion origin/range/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_library(origin-range STATIC
core.cpp
range.cpp)

target_compile_options(origin-range PUBLIC -std=c++1z)
target_compile_options(origin-range PUBLIC -std=c++1z -fconcepts)
target_include_directories(origin-range
PUBLIC "$<BUILD_INTERFACE:${Origin_SOURCE_DIR};${Origin_BINARY_DIR}>")
target_link_libraries(origin-range PUBLIC origin-iterator)
Expand Down

0 comments on commit 4358f0d

Please sign in to comment.