Skip to content

Commit a4aef55

Browse files
committed
Handle CMake policy CMP0048
1 parent d0fa874 commit a4aef55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ set(ver_patch ${CMAKE_MATCH_1})
1818
set(WSREP_LIB_VERSION "${ver_major}.${ver_minor}.${ver_patch}")
1919
message(STATUS "Wsrep-lib version: ${WSREP_LIB_VERSION}")
2020

21-
if (CMP0048 EQUAL NEW)
21+
if (POLICY CMP0048)
22+
cmake_policy(SET CMP0048 NEW)
2223
project(wsrep-lib VERSION ${WSREP_LIB_VERSION})
2324
else()
2425
project(wsrep-lib)

0 commit comments

Comments
 (0)