mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
25663f218c
* [ideviceinstaller] Add support !static * Modify port-version * x-add-version * Add getopt as a dependence of argtable2 * Use version * x-add-version * Remove space * Add license * Fix format error * x-add-version * update version * fix argtable3 * x-add-version * fix argtable3 * version * fix gdcm * format portfile.cmake * update version * format vcpkg.json * x-add-version * format portfile.cmake * x-add-version * Update license * x-add-version * Again * Mistake Co-authored-by: Lily Wang <494550702@qq.com> Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
17 lines
642 B
Diff
17 lines
642 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 2e0b519..6b455dd 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -79,6 +79,11 @@ endif()
|
|
add_library(${ARGTABLE3_PROJECT_NAME}::argtable3 ALIAS argtable3)
|
|
target_include_directories(argtable3 PRIVATE ${PROJECT_SOURCE_DIR}/src)
|
|
|
|
+if(NOT ARGTABLE3_REPLACE_GETOPT)
|
|
+ find_package(unofficial-getopt-win32 REQUIRED)
|
|
+ target_link_libraries(argtable3 PRIVATE unofficial::getopt-win32::getopt)
|
|
+endif()
|
|
+
|
|
set_target_properties(argtable3 PROPERTIES
|
|
VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|