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 0113ea2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/simsycl_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_POLICY_DEFAULT_CMP0144=NEW
-S ${{ github.workspace }}
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.install-dir }}
Expand All @@ -95,6 +96,7 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_POLICY_DEFAULT_CMP0144=NEW
-S ${{ github.workspace }}/examples
-DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.install-dir }}
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if(CMAKE_GENERATOR STREQUAL "Ninja")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
endif()

find_package(Boost 1.70 COMPONENTS context REQUIRED)
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 0113ea2

Please sign in to comment.