Skip to content

Commit

Permalink
Fix CMake warning issued since CMake V3.30
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Nov 19, 2024
1 parent b98428c commit d826f0d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/HPX_SetupBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if(NOT TARGET hpx_dependencies_boost)
hpx_set_cmake_policy(CMP0167 OLD) # use CMake's FindBoost for now

# Find the headers and get the version
find_package(Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE MODULE REQUIRED)
find_package(Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE CONFIG REQUIRED)
if(NOT Boost_VERSION_STRING)
set(Boost_VERSION_STRING
"${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}"
Expand Down Expand Up @@ -142,7 +142,7 @@ if(NOT TARGET hpx_dependencies_boost)
endif()

find_package(
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE MODULE REQUIRED
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE CONFIG REQUIRED
COMPONENTS ${__boost_libraries}
)

Expand Down
2 changes: 1 addition & 1 deletion cmake/HPX_SetupBoostFilesystem.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(HPX_FILESYSTEM_WITH_BOOST_FILESYSTEM_COMPATIBILITY)
hpx_set_cmake_policy(CMP0167 OLD) # use CMake's FindBoost for now

find_package(
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE MODULE
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE CONFIG
COMPONENTS filesystem
)

Expand Down
2 changes: 1 addition & 1 deletion cmake/HPX_SetupBoostIostreams.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if((HPX_WITH_COMPRESSION_BZIP2
hpx_set_cmake_policy(CMP0167 OLD) # use CMake's FindBoost for now

find_package(
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE MODULE COMPONENTS iostreams
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE CONFIG COMPONENTS iostreams
)

if(Boost_IOSTREAMS_FOUND)
Expand Down
2 changes: 1 addition & 1 deletion cmake/HPX_SetupBoostRegex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if(NOT TARGET Boost::regex)
hpx_set_cmake_policy(CMP0167 OLD) # use CMake's FindBoost for now

find_package(
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE MODULE COMPONENTS regex
Boost ${Boost_MINIMUM_VERSION} NO_POLICY_SCOPE CONFIG COMPONENTS regex
)

if(Boost_REGEX_FOUND)
Expand Down

0 comments on commit d826f0d

Please sign in to comment.