Skip to content

Commit

Permalink
Add new CMake policy for Boost integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Griwodz committed Jan 13, 2025
1 parent abef1d4 commit 5e85a1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/application/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ endif()

find_package(DevIL COMPONENTS IL ILU) # yields IL_FOUND, IL_LIBRARIES, IL_INCLUDE_DIR

# for newer CMake versions and Boost 1.70 pr newer must use Boost's make file
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.30)
cmake_policy(SET CMP0167 NEW)
endif()
if(PopSift_BOOST_USE_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif()
Expand Down

0 comments on commit 5e85a1d

Please sign in to comment.