diff options
| author | past-due <30942300+past-due@users.noreply.github.com> | 2018-03-19 16:46:22 -0400 |
|---|---|---|
| committer | past-due <30942300+past-due@users.noreply.github.com> | 2018-03-19 16:46:22 -0400 |
| commit | 62a015b4f3754d92381a02b5b11641a1ddcc256d (patch) | |
| tree | 15c76da710085f15e80dfcb14500d89074a35472 | |
| parent | 5968ebf9f4beae3a0662dfc6ba343b0be07a1241 (diff) | |
| download | vcpkg-62a015b4f3754d92381a02b5b11641a1ddcc256d.tar.gz vcpkg-62a015b4f3754d92381a02b5b11641a1ddcc256d.zip | |
[sqlite3] Fix build failure when VCPKG_BUILD_TYPE is set to "release"
| -rw-r--r-- | ports/sqlite3/portfile.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ports/sqlite3/portfile.cmake b/ports/sqlite3/portfile.cmake index 031eefbf2..d6596e7b2 100644 --- a/ports/sqlite3/portfile.cmake +++ b/ports/sqlite3/portfile.cmake @@ -28,9 +28,11 @@ vcpkg_configure_cmake( vcpkg_install_cmake()
-file(READ ${CURRENT_PACKAGES_DIR}/debug/share/sqlite3/sqlite3Config-debug.cmake SQLITE3_DEBUG_CONFIG)
-string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" SQLITE3_DEBUG_CONFIG "${SQLITE3_DEBUG_CONFIG}")
-file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/sqlite3Config-debug.cmake "${SQLITE3_DEBUG_CONFIG}")
+if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
+ file(READ ${CURRENT_PACKAGES_DIR}/debug/share/sqlite3/sqlite3Config-debug.cmake SQLITE3_DEBUG_CONFIG)
+ string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" SQLITE3_DEBUG_CONFIG "${SQLITE3_DEBUG_CONFIG}")
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/sqlite3Config-debug.cmake "${SQLITE3_DEBUG_CONFIG}")
+endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
