aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Martin <adam.madram@gmail.com>2016-10-09 10:55:46 -0500
committerAdam Martin <adam.madram@gmail.com>2016-10-09 10:55:46 -0500
commit32548fe2edae25ed307ebebc12712fc8df920f64 (patch)
treeeee4244c0d16bfd1d6435c1d2216e914687fc72d
parenta0f621c0fca2c3de8bd5249f023979b800c543cf (diff)
downloadvcpkg-32548fe2edae25ed307ebebc12712fc8df920f64.tar.gz
vcpkg-32548fe2edae25ed307ebebc12712fc8df920f64.zip
Add the tools directory to CMAKE_PROGRAM_PATH so find_program and similar can locate installed tools
-rw-r--r--scripts/buildsystems/vcpkg.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake
index ca0900b89..88145c463 100644
--- a/scripts/buildsystems/vcpkg.cmake
+++ b/scripts/buildsystems/vcpkg.cmake
@@ -36,6 +36,8 @@ if(NOT VCPKG_TOOLCHAIN)
include_directories(${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
+ set(CMAKE_PROGRAM_PATH ${CMAKE_PROGRAM_PATH} ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/tools)
+
option(OVERRIDE_ADD_EXECUTABLE "Automatically copy dependencies into the output directory for executables." ON)
if(OVERRIDE_ADD_EXECUTABLE)
function(add_executable name)