diff options
| author | Adam Martin <adam.madram@gmail.com> | 2016-10-09 10:55:46 -0500 |
|---|---|---|
| committer | Adam Martin <adam.madram@gmail.com> | 2016-10-09 10:55:46 -0500 |
| commit | 32548fe2edae25ed307ebebc12712fc8df920f64 (patch) | |
| tree | eee4244c0d16bfd1d6435c1d2216e914687fc72d | |
| parent | a0f621c0fca2c3de8bd5249f023979b800c543cf (diff) | |
| download | vcpkg-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.cmake | 2 |
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) |
