Merge pull request #76 from traversaro/fixCMakePrefixPath

Fix wrong CMAKE_PREFIX_PATH in vcpkg.cmake
This commit is contained in:
Robert Schumacher 2016-09-22 15:42:33 -07:00 committed by GitHub
commit d2e3779cf2

View File

@ -27,11 +27,11 @@ if(NOT VCPKG_TOOLCHAIN)
if(CMAKE_BUILD_TYPE MATCHES "^Debug$" OR NOT DEFINED CMAKE_BUILD_TYPE)
list(APPEND CMAKE_PREFIX_PATH
${CMAKE_CURRENT_LIST_DIR}/../installed/${_VCPKG_TARGET_TRIPLET}/debug
${CMAKE_CURRENT_LIST_DIR}/../../installed/${_VCPKG_TARGET_TRIPLET}/debug
)
endif()
list(APPEND CMAKE_PREFIX_PATH
${CMAKE_CURRENT_LIST_DIR}/../installed/${_VCPKG_TARGET_TRIPLET}
${CMAKE_CURRENT_LIST_DIR}/../../installed/${_VCPKG_TARGET_TRIPLET}
)
include_directories(${CMAKE_CURRENT_LIST_DIR}/../installed/${_VCPKG_TARGET_TRIPLET}/include)