Skip to content

Commit

Permalink
Some CMake policy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed May 31, 2024
1 parent bdc47f6 commit e88faa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ if(PALACE_WITH_CUDA AND PALACE_WITH_HIP)
message(FATAL_ERROR "PALACE_WITH_CUDA is not compatible with PALACE_WITH_HIP")
endif()
if(PALACE_WITH_CUDA)
# Note: The new behavior of CMake policy CMP0104 will initialize CMAKE_CUDA_ARCHITECTURES
# to an (old) compatible value even when not set by the user.
enable_language(CUDA)
get_filename_component(NVCC_DIR ${CMAKE_CUDA_COMPILER} DIRECTORY)
get_filename_component(BIN_NVCC_DIR ${NVCC_DIR} DIRECTORY)
Expand Down
3 changes: 0 additions & 3 deletions cmake/ExternalPalace.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ string(REPLACE ";" "; " PALACE_OPTIONS_PRINT "${PALACE_OPTIONS}")
message(STATUS "PALACE_OPTIONS: ${PALACE_OPTIONS_PRINT}")

include(ExternalProject)
if(POLICY CMP0114)
cmake_policy(SET CMP0114 NEW)
endif()
ExternalProject_Add(palace
DEPENDS ${PALACE_DEPENDENCIES}
SOURCE_DIR ${CMAKE_SOURCE_DIR}/palace
Expand Down

0 comments on commit e88faa5

Please sign in to comment.