Skip to content

Commit 249d706

Browse files
committed
Opt-in to CMP0181
This is necessary for CMake 4.0+ support. All this does is enable CMake to handled `LINKER:arg1,arg2` syntax for `CMAKE_[EXE|SHARED|MODULE|_LINKER_FLAGS`. It does not mandate that syntax.
1 parent a6f0512 commit 249d706

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ if(POLICY CMP0157 AND CMAKE_Swift_COMPILER_USE_OLD_DRIVER)
66
cmake_policy(SET CMP0157 OLD)
77
endif()
88

9+
if(POLICY CMP0181)
10+
cmake_policy(SET CMP0181 NEW)
11+
endif()
12+
913
project(dispatch
1014
VERSION 1.3
1115
LANGUAGES C CXX)

0 commit comments

Comments
 (0)