Skip to content

Commit d17ea04

Browse files
committed
fix rocky build issue
1 parent 4b74254 commit d17ea04

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

CMakeLists.txt

+11-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ endif()
3232
###############################################################################
3333
## CMake policies
3434

35-
# CMP0071: Let AUTOMOC and AUTOUIC process GENERATED files.
3635
list(APPEND cmake_policies_new
3736
# CMP0071
3837
)
@@ -43,6 +42,16 @@ foreach(p ${cmake_policies_new})
4342
endif()
4443
endforeach()
4544

45+
list(APPEND cmake_policies_old
46+
CMP0167
47+
)
48+
49+
foreach(p ${cmake_policies_old})
50+
if(POLICY ${p})
51+
cmake_policy(SET ${p} OLD)
52+
endif()
53+
endforeach()
54+
4655
###############################################################################
4756
## the name of the game
4857

@@ -1141,7 +1150,7 @@ if(USE_SYSTEM_BOOST)
11411150
set(Boost_USE_MULTITHREADED ON)
11421151
set(Boost_USE_STATIC_RUNTIME OFF)
11431152
endif()
1144-
find_package(Boost CONFIG REQUIRED locale)
1153+
find_package(Boost REQUIRED locale)
11451154
endif()
11461155

11471156
if(USE_SYSTEM_BZIP2)

0 commit comments

Comments
 (0)