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 Jul 8, 2020
1 parent 22d2a55 commit 8ff505f
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 8ff505f

Please sign in to comment.