Skip to content

Commit

Permalink
make C++11 requirement public, so it propagates; avoid extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Jul 21, 2021
1 parent 1c4ddd6 commit e2ac615
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,11 @@ target_include_directories(geometry-central PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/
target_link_libraries(geometry-central PUBLIC ${GC_DEP_LIBS})

# Set compiler properties for the library
set_property(TARGET geometry-central PROPERTY CXX_STANDARD 11)
set_property(TARGET geometry-central PROPERTY CXX_STANDARD_REQUIRED TRUE)
target_compile_features(geometry-central PUBLIC cxx_std_11)
set_target_properties(geometry-central PROPERTIES
CXX_STANDARD_REQUIRED TRUE
CXX_EXTENSIONS OFF
)
target_compile_definitions(geometry-central PUBLIC NOMINMAX _USE_MATH_DEFINES)

# Define CMAKE flag used in these sources (but should be kept OUT of headers)
Expand Down

0 comments on commit e2ac615

Please sign in to comment.