mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Set CMake policy CMP0079 when version >= 3.13
This commit is contained in:
parent
56322b9b3f
commit
1134b18cb9
1 changed files with 5 additions and 0 deletions
|
|
@ -120,6 +120,11 @@ target_include_directories(pugixml PUBLIC vendor/pugixml/)
|
|||
# xtensor header-only library
|
||||
#===============================================================================
|
||||
|
||||
# CMake 3.13+ will complain about policy CMP0079 unless it is set explicitly
|
||||
if (NOT (CMAKE_VERSION VERSION_LESS 3.13))
|
||||
cmake_policy(SET CMP0079 NEW)
|
||||
endif()
|
||||
|
||||
add_subdirectory(vendor/xtl)
|
||||
add_subdirectory(vendor/xtensor)
|
||||
target_link_libraries(xtensor INTERFACE xtl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue