mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
Disabled GNU extensions for openmc, libopenmc CMake targets
This commit is contained in:
parent
7752afb554
commit
6865b03d35
1 changed files with 2 additions and 1 deletions
|
|
@ -455,9 +455,10 @@ target_compile_options(openmc PRIVATE ${cxxflags})
|
|||
target_include_directories(openmc PRIVATE ${CMAKE_BINARY_DIR}/include)
|
||||
target_link_libraries(openmc libopenmc)
|
||||
|
||||
# Ensure C++14 standard is used
|
||||
# Ensure C++14 standard is used and turn off GNU extensions
|
||||
target_compile_features(openmc PUBLIC cxx_std_14)
|
||||
target_compile_features(libopenmc PUBLIC cxx_std_14)
|
||||
set_target_properties(openmc libopenmc PROPERTIES CXX_EXTENSIONS OFF)
|
||||
|
||||
#===============================================================================
|
||||
# Python package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue