mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #823 from paulromano/cxx-std-fix
Fix to build pugixml with older cmake version
This commit is contained in:
commit
24cd12cf3a
1 changed files with 5 additions and 1 deletions
|
|
@ -225,7 +225,11 @@ endif()
|
|||
#===============================================================================
|
||||
|
||||
add_library(pugixml src/pugixml/pugixml_c.cpp src/pugixml/pugixml.cpp)
|
||||
set_property(TARGET pugixml PROPERTY CXX_STANDARD 11)
|
||||
if(CMAKE_VERSION VERSION_LESS 3.1)
|
||||
target_compile_options(pugixml PRIVATE -std=c++11)
|
||||
else()
|
||||
set_property(TARGET pugixml PROPERTY CXX_STANDARD 11)
|
||||
endif()
|
||||
|
||||
add_library(pugixml_fortran src/pugixml/pugixml_f.F90)
|
||||
target_link_libraries(pugixml_fortran pugixml)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue