-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add CMAKE options for avoid compile not installable files - Remove obsolete dependency - Now this port installs static and shared libraries - Bump PORTREVISION Reported by: diizzy
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- src/CMakeLists.txt.orig 2024-02-18 21:34:25 UTC | ||
+++ src/CMakeLists.txt | ||
@@ -73,7 +73,8 @@ if(BUILD_SHARED_LIBS AND WIN32) | ||
add_library(argtable3 ${ARGTABLE3_SRC_FILES} "${PROJECT_BINARY_DIR}/src/version.rc") | ||
target_compile_definitions(argtable3 INTERFACE argtable3_IMPORTS) | ||
else() | ||
- add_library(argtable3 ${ARGTABLE3_SRC_FILES}) | ||
+ add_library(argtable3_static STATIC ${ARGTABLE3_SRC_FILES}) | ||
+ add_library(argtable3 SHARED ${ARGTABLE3_SRC_FILES}) | ||
endif() | ||
|
||
add_library(${ARGTABLE3_PROJECT_NAME}::argtable3 ALIAS argtable3) | ||
@@ -94,6 +95,13 @@ elseif(WIN32) | ||
endif() | ||
|
||
install(TARGETS argtable3 | ||
+ EXPORT ${ARGTABLE3_PACKAGE_NAME}Config | ||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
+) | ||
+ | ||
+install(TARGETS argtable3_static | ||
EXPORT ${ARGTABLE3_PACKAGE_NAME}Config | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters