aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Chang <twmr7@outlook.com>2017-11-01 16:27:12 +0800
committerRobert Schumacher <roschuma@microsoft.com>2017-11-01 01:27:12 -0700
commit4ff90ec4309df1d5937d62c52683e1147066445a (patch)
treeed046f2c9db0716f9cb9ff292111c9a46f92ef6b /scripts
parent516c42bdc4a5443e0f78fae559c187823e6326d1 (diff)
downloadvcpkg-4ff90ec4309df1d5937d62c52683e1147066445a.tar.gz
vcpkg-4ff90ec4309df1d5937d62c52683e1147066445a.zip
[poco] build with MySQL support (#2088)
* [poco] build with MySQL support Set proper variables to enable MySQL support if libmysql port is installed * [poco] Move Mysql support to a feature. Enable CMake config files.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_fixup_cmake_targets.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_fixup_cmake_targets.cmake b/scripts/cmake/vcpkg_fixup_cmake_targets.cmake
index 069672b71..ca228b2a4 100644
--- a/scripts/cmake/vcpkg_fixup_cmake_targets.cmake
+++ b/scripts/cmake/vcpkg_fixup_cmake_targets.cmake
@@ -116,6 +116,9 @@ function(vcpkg_fixup_cmake_targets)
"get_filename_component\\(_IMPORT_PREFIX \"\\\${CMAKE_CURRENT_LIST_FILE}\" PATH\\)(\nget_filename_component\\(_IMPORT_PREFIX \"\\\${_IMPORT_PREFIX}\" PATH\\))*"
"get_filename_component(_IMPORT_PREFIX \"\${CMAKE_CURRENT_LIST_FILE}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)"
_contents "${_contents}")
+ string(REPLACE "${CURRENT_INSTALLED_DIR}" "_INVALID_ROOT_" _contents "${_contents}")
+ string(REGEX REPLACE ";_INVALID_ROOT_/[^\";]*" "" _contents "${_contents}")
+ string(REGEX REPLACE "_INVALID_ROOT_/[^\";]*;" "" _contents "${_contents}")
file(WRITE ${MAIN_TARGET} "${_contents}")
endforeach()