Skip to content

Commit

Permalink
Allow overriding CMAKE_FIND_PACKAGE_PREFER_CONFIG option
Browse files Browse the repository at this point in the history
The default behavior (TRUE) remains unchanged.
  • Loading branch information
arahlin committed Aug 16, 2023
1 parent f37bb5f commit 4302420
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/Spt3gBoostPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ else()
endif()

# suppress configuration warnings in newer cmake / boost versions
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
if(NOT DEFINED CMAKE_FIND_PACKAGE_PREFER_CONFIG)
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
endif()

if(NOT DEFINED Boost_PYTHON_TYPE)
set(Boost_PYTHON_TYPE python)
Expand Down

0 comments on commit 4302420

Please sign in to comment.