Skip to content

Commit 0f5c5b7

Browse files
committed
cmake: option() honors normal variables (CMP0077)
1 parent a6b7918 commit 0f5c5b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
cmake_minimum_required(VERSION 3.5)
22
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
33

4+
# option() honors normal variables.
5+
if(POLICY CMP0077)
6+
cmake_policy(SET CMP0077 NEW)
7+
endif()
8+
49
include(ParseAc)
510
parse_ac(VERSION MAJOR MINOR PATCH)
611

0 commit comments

Comments
 (0)