Skip to content

Commit 76523b3

Browse files
committed
Fix CMP0167 CMake warning
1 parent f677706 commit 76523b3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/simsycl_ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
8181
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
8282
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
83+
-DCMAKE_POLICY_DEFAULT_CMP0144=NEW
8384
-S ${{ github.workspace }}
8485
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.install-dir }}
8586
@@ -95,6 +96,7 @@ jobs:
9596
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
9697
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
9798
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
99+
-DCMAKE_POLICY_DEFAULT_CMP0144=NEW
98100
-S ${{ github.workspace }}/examples
99101
-DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.install-dir }}
100102

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if(CMAKE_GENERATOR STREQUAL "Ninja")
2828
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
2929
endif()
3030

31-
find_package(Boost 1.70 COMPONENTS context REQUIRED)
31+
find_package(Boost 1.70 CONFIG COMPONENTS context REQUIRED)
3232

3333
include(FetchContent)
3434

cmake/simsycl-config.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set(SIMSYCL_LIBRARY SimSYCL::simsycl)
1414
set(SIMSYCL_ORIGINAL_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}")
1515
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${SIMSYCL_CMAKE_DIR}")
1616

17-
find_dependency(Boost 1.70 COMPONENTS context REQUIRED)
17+
find_dependency(Boost 1.70 CONFIG COMPONENTS context REQUIRED)
1818
find_dependency(nlohmann_json)
1919
find_dependency(libenvpp)
2020

0 commit comments

Comments
 (0)