Skip to content

Commit 958e65c

Browse files
authored
Merge pull request #9 from cristianadam/master
Add more variables into global scope
2 parents d2cd609 + b936268 commit 958e65c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

CMakeLists.txt

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (c) 2013-2014, Ruslan Baratov
2-
# Copyright (c) 2019 Cristian Adam
2+
# Copyright (c) 2019-2020 Cristian Adam
33
# All rights reserved.
44

55
cmake_minimum_required(VERSION 3.2)
@@ -148,8 +148,16 @@ if (ORIGINAL_TOOLCHAIN_FILE)
148148
endif()
149149

150150
#
151-
# Make sure the parent find_package calls work as expected
151+
# Make sure the parent find_package and include calls work as expected
152152
#
153153

154-
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} PARENT_SCOPE)
155-
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)
154+
set(CMAKE_FIND_ROOT_PATH "${CMAKE_FIND_ROOT_PATH}" PARENT_SCOPE)
155+
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}" PARENT_SCOPE)
156+
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" PARENT_SCOPE)
157+
158+
#
159+
# Variables expected to be found in global scope
160+
#
161+
set(HUNTER_ID_PATH "${HUNTER_ID_PATH}" PARENT_SCOPE)
162+
set(HUNTER_TOOLCHAIN_ID_PATH "${HUNTER_TOOLCHAIN_ID_PATH}" PARENT_SCOPE)
163+
set(HUNTER_CONFIG_ID_PATH "${HUNTER_CONFIG_ID_PATH}" PARENT_SCOPE)

0 commit comments

Comments
 (0)