mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Merge pull request #1770 from gridley/fix_1769
do not set properties of pugixml target if it's not a valid CMake target
This commit is contained in:
commit
e2842cfef3
1 changed files with 3 additions and 3 deletions
|
|
@ -171,6 +171,7 @@ endif()
|
|||
|
||||
if (NOT pugixml_FOUND)
|
||||
add_subdirectory(vendor/pugixml)
|
||||
set_target_properties(pugixml PROPERTIES CXX_STANDARD 14 CXX_EXTENSIONS OFF)
|
||||
endif()
|
||||
|
||||
#===============================================================================
|
||||
|
|
@ -357,8 +358,7 @@ endif()
|
|||
|
||||
# Avoid vs error lnk1149 :output filename matches input filename
|
||||
if(NOT MSVC)
|
||||
set_target_properties(libopenmc PROPERTIES
|
||||
OUTPUT_NAME openmc)
|
||||
set_target_properties(libopenmc PROPERTIES OUTPUT_NAME openmc)
|
||||
endif()
|
||||
|
||||
target_include_directories(libopenmc
|
||||
|
|
@ -414,7 +414,7 @@ target_link_libraries(openmc libopenmc)
|
|||
# Ensure C++14 standard is used. Starting with CMake 3.8, another way this could
|
||||
# be done is using the cxx_std_14 compiler feature.
|
||||
set_target_properties(
|
||||
openmc libopenmc faddeeva pugixml
|
||||
openmc libopenmc faddeeva
|
||||
PROPERTIES CXX_STANDARD 14 CXX_EXTENSIONS OFF)
|
||||
|
||||
#===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue