Skip to content

Commit 5e85a1d

Browse files
author
Carsten Griwodz
committed
Add new CMake policy for Boost integration
1 parent abef1d4 commit 5e85a1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/application/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ endif()
3939

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

42+
# for newer CMake versions and Boost 1.70 pr newer must use Boost's make file
43+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.30)
44+
cmake_policy(SET CMP0167 NEW)
45+
endif()
4246
if(PopSift_BOOST_USE_STATIC_LIBS)
4347
set(Boost_USE_STATIC_LIBS ON)
4448
endif()

0 commit comments

Comments
 (0)