diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-02-23 16:50:32 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-02-23 16:50:32 -0800 |
| commit | 0334365f516c5f229ff4fcf038c7d0190979a38a (patch) | |
| tree | 9ca62b455be687a12edf11125dfb29c4f6097e75 /scripts | |
| parent | 910d3e52802185a374fab8764b30d07f15e94fec (diff) | |
| download | vcpkg-0334365f516c5f229ff4fcf038c7d0190979a38a.tar.gz vcpkg-0334365f516c5f229ff4fcf038c7d0190979a38a.zip | |
[vcpkg-cmake-integration] Warn if no packages are installed for the current triplet.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/buildsystems/vcpkg.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index ceb43940b..d5108471f 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -81,6 +81,10 @@ if(NOT DEFINED _VCPKG_ROOT_DIR) endif() set(_VCPKG_INSTALLED_DIR ${_VCPKG_ROOT_DIR}/installed) +if(NOT EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" AND NOT _CMAKE_IN_TRY_COMPILE) + message(WARNING "There are no libraries installed for the Vcpkg triplet ${VCPKG_TARGET_TRIPLET}.") +endif() + if(CMAKE_BUILD_TYPE MATCHES "^Debug$" OR NOT DEFINED CMAKE_BUILD_TYPE) list(APPEND CMAKE_PREFIX_PATH ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug |
