aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Warren <s.warren@garvan.org.au>2017-11-13 12:14:05 +1100
committerSean Warren <s.warren@garvan.org.au>2017-11-13 12:23:29 +1100
commit6a7d311ea5f180bdc86bb80bb04ed058fa518015 (patch)
treeba16cbefa718fa91cb27517d6d32c340ade4b5cd
parent2c4d1dc17f0ddd9443447a9e671fcf8e5d9311f7 (diff)
downloadvcpkg-6a7d311ea5f180bdc86bb80bb04ed058fa518015.tar.gz
vcpkg-6a7d311ea5f180bdc86bb80bb04ed058fa518015.zip
[libraw] Add 'd' debug postfix
-rw-r--r--ports/libraw/portfile.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/ports/libraw/portfile.cmake b/ports/libraw/portfile.cmake
index 797ca5aa0..ee3c1ae26 100644
--- a/ports/libraw/portfile.cmake
+++ b/ports/libraw/portfile.cmake
@@ -26,6 +26,7 @@ vcpkg_configure_cmake(
PREFER_NINJA
OPTIONS
-DINSTALL_CMAKE_MODULE_PATH=${CURRENT_PACKAGES_DIR}/share/libraw
+ -DCMAKE_DEBUG_POSTFIX=d
)
vcpkg_install_cmake()
@@ -40,9 +41,9 @@ file(WRITE ${CURRENT_PACKAGES_DIR}/include/libraw/libraw_types.h "${LIBRAW_H}")
# Rename thread-safe version to be "raw.lib". This is unfortunately needed
# because otherwise libraries that build on top of libraw have to choose.
-file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/raw.lib ${CURRENT_PACKAGES_DIR}/debug/lib/raw.lib)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/raw.lib ${CURRENT_PACKAGES_DIR}/debug/lib/rawd.lib)
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/raw_r.lib ${CURRENT_PACKAGES_DIR}/lib/raw.lib)
-file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/raw_r.lib ${CURRENT_PACKAGES_DIR}/debug/lib/raw.lib)
+file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/raw_rd.lib ${CURRENT_PACKAGES_DIR}/debug/lib/rawd.lib)
# Cleanup
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
@@ -53,7 +54,7 @@ file(REMOVE ${DEBUG_EXECUTABLES})
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
else()
- file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/raw.dll ${CURRENT_PACKAGES_DIR}/debug/bin/raw.dll)
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/raw.dll ${CURRENT_PACKAGES_DIR}/debug/bin/rawd.dll)
endif()
# Rename cmake module into a config in order to allow more flexible lookup rules