mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 17:49:02 +08:00
17 lines
402 B
Diff
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)
|