vcpkg/ports/libcoro/0004-fix-pkgconfig-on-windows.patch
2024-01-04 11:58:41 -08:00

17 lines
402 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -186,7 +186,11 @@
# generate pc file for pkg-config
-string(REGEX REPLACE "^lib" "" target1 ${PROJECT_NAME})
+if(MSVC)
+ set(target1 ${PROJECT_NAME})
+else()
+ string(REGEX REPLACE "^lib" "" target1 ${PROJECT_NAME})
+endif()
configure_file(libcoro.pc.in libcoro.pc @ONLY)
install(TARGETS libcoro)