Skip to content

Commit 85b809d

Browse files
authored
Merge pull request #2728 from lnicola/patch-1
Make sure `CMP0148` exists
2 parents bf1d91e + acd9894 commit 85b809d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ if(POLICY CMP0167)
1414
cmake_policy(SET CMP0167 OLD)
1515
endif()
1616

17-
cmake_policy(SET CMP0148 OLD)
17+
if(POLICY CMP0148)
18+
cmake_policy(SET CMP0148 OLD)
19+
endif()
1820

1921
#---------------------------------------------
2022
# Setting kind of build

0 commit comments

Comments
 (0)