Skip to content

Commit e9f5093

Browse files
committed
Force set CMAKE_POLICY_VERSION_MINIMUM to make third-party libs able to compile via cmake 4
1 parent 2535c67 commit e9f5093

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ project(
66
LANGUAGES C CXX ASM
77
)
88

9+
# for CMake 4.x compatible
10+
set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
11+
912
# Utility Modules and Find Modules
1013
include(FindPackageHandleStandardArgs)
1114
include(CheckCXXCompilerFlag)

0 commit comments

Comments
 (0)