Skip to content

Commit

Permalink
Fix CMP0167 CMake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTh committed Dec 31, 2024
1 parent f677706 commit 978aece
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ if(CMAKE_GENERATOR STREQUAL "Ninja")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
endif()

find_package(Boost 1.70 COMPONENTS context REQUIRED)
if(POLICY CMP0144)
# Allow upper-case package ROOT variables
cmake_policy(SET CMP0144 NEW)
endif()

find_package(Boost 1.70 CONFIG COMPONENTS context REQUIRED)

include(FetchContent)

Expand Down
2 changes: 1 addition & 1 deletion cmake/simsycl-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(SIMSYCL_LIBRARY SimSYCL::simsycl)
set(SIMSYCL_ORIGINAL_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}")
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${SIMSYCL_CMAKE_DIR}")

find_dependency(Boost 1.70 COMPONENTS context REQUIRED)
find_dependency(Boost 1.70 CONFIG COMPONENTS context REQUIRED)
find_dependency(nlohmann_json)
find_dependency(libenvpp)

Expand Down

0 comments on commit 978aece

Please sign in to comment.