Skip to content

Commit 7d636d8

Browse files
committed
CMake: Accept <Package>_ROOT from environment
1 parent c0fc4e6 commit 7d636d8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
22

33
message(AUTHOR_WARNING "If the build fails, please try the autotools/qmake method.")
44

5+
if(POLICY CMP0074)
6+
cmake_policy(SET CMP0074 NEW)
7+
endif()
8+
59
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
610
include(FunctionReadVersion)
711

0 commit comments

Comments
 (0)