Skip to content

Commit ee740d2

Browse files
authored
Merge pull request #215 from sergey-bon/fix-issue-214
Fix #214: Better integration with CMake 3.13 (CMP0077)
2 parents fec113c + b7ebdb6 commit ee740d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.3")
55
cmake_policy(SET CMP0063 NEW)
66
endif()
77

8+
if (NOT CMAKE_VERSION VERSION_LESS "3.13")
9+
# CMP0077: option() honors normal variables
10+
# https://cmake.org/cmake/help/latest/policy/CMP0077.html
11+
cmake_policy(SET CMP0077 NEW)
12+
endif()
13+
814
project(Cucumber-Cpp)
915

1016
option(BUILD_SHARED_LIBS "Generate shared libraries" OFF)

0 commit comments

Comments
 (0)