Skip to content

Commit

Permalink
Merge pull request #9 from cristianadam/master
Browse files Browse the repository at this point in the history
Add more variables into global scope
  • Loading branch information
bkotzz authored Jan 3, 2020
2 parents d2cd609 + b936268 commit 958e65c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2013-2014, Ruslan Baratov
# Copyright (c) 2019 Cristian Adam
# Copyright (c) 2019-2020 Cristian Adam
# All rights reserved.

cmake_minimum_required(VERSION 3.2)
Expand Down Expand Up @@ -148,8 +148,16 @@ if (ORIGINAL_TOOLCHAIN_FILE)
endif()

#
# Make sure the parent find_package calls work as expected
# Make sure the parent find_package and include calls work as expected
#

set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} PARENT_SCOPE)
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)
set(CMAKE_FIND_ROOT_PATH "${CMAKE_FIND_ROOT_PATH}" PARENT_SCOPE)
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}" PARENT_SCOPE)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" PARENT_SCOPE)

#
# Variables expected to be found in global scope
#
set(HUNTER_ID_PATH "${HUNTER_ID_PATH}" PARENT_SCOPE)
set(HUNTER_TOOLCHAIN_ID_PATH "${HUNTER_TOOLCHAIN_ID_PATH}" PARENT_SCOPE)
set(HUNTER_CONFIG_ID_PATH "${HUNTER_CONFIG_ID_PATH}" PARENT_SCOPE)

0 comments on commit 958e65c

Please sign in to comment.