Skip to content

Commit

Permalink
cmake: option() honors normal variables (CMP0077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Sep 4, 2020
1 parent a6b7918 commit 0f5c5b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.5)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# option() honors normal variables.
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()

include(ParseAc)
parse_ac(VERSION MAJOR MINOR PATCH)

Expand Down

0 comments on commit 0f5c5b7

Please sign in to comment.