vcpkg/ports/libcoro/0004-fix-pkgconfig-on-windows.patch

17 lines
402 B
Diff
Raw Normal View History

2024-01-05 03:58:41 +08:00
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)