forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#5581) argtable3: bump argtable3/3.2.0 + cmake target
- Loading branch information
Showing
7 changed files
with
115 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
sources: | ||
"3.2.0": | ||
url: "https://github.com/argtable/argtable3/archive/refs/tags/v3.2.0.7402e6e.tar.gz" | ||
sha256: "e692ce51fb51dc750b47ef0ef2941573c8c49195aa2ddc48cb369239c400efa7" | ||
"3.1.5": | ||
url: "https://github.com/argtable/argtable3/archive/v3.1.5.1c1bb23.tar.gz" | ||
sha256: "e2435562ece10bbf52c21811fe6ec25a3574054886cb56d483e5c17451329bb4" | ||
patches: | ||
"3.2.0": | ||
- patch_file: "patches/3.2.0-0001-cmake-fixes.patch" | ||
base_path: "source_subfolder" | ||
"3.1.5": | ||
- patch_file: "patches/3.1.5-0001-cmake-fixes.patch" | ||
base_path: "source_subfolder" |
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
59 changes: 59 additions & 0 deletions
59
recipes/argtable3/all/patches/3.2.0-0001-cmake-fixes.patch
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,59 @@ | ||
--- CMakeLists.txt | ||
+++ CMakeLists.txt | ||
@@ -93,7 +93,7 @@ | ||
endif() | ||
|
||
add_subdirectory(src) | ||
-add_subdirectory(examples) | ||
+#add_subdirectory(examples) | ||
|
||
if(ARGTABLE3_ENABLE_TESTS) | ||
enable_testing() | ||
--- src/CMakeLists.txt | ||
+++ src/CMakeLists.txt | ||
@@ -57,7 +57,7 @@ | ||
endif() | ||
|
||
add_definitions(-D_XOPEN_SOURCE=700) | ||
- | ||
+if(BUILD_SHARED_LIBS) | ||
if(WIN32) | ||
set(COMPANY_NAME "The Argtable3 Project") | ||
set(FILE_DESC "ANSI C command-line parsing library") | ||
@@ -75,13 +75,13 @@ | ||
add_library(argtable3 SHARED ${ARGTABLE3_SRC_FILES}) | ||
endif() | ||
target_include_directories(argtable3 PRIVATE ${PROJECT_SOURCE_DIR}/src) | ||
- | ||
-add_library(argtable3_static STATIC ${ARGTABLE3_SRC_FILES}) | ||
-target_include_directories(argtable3_static PRIVATE ${PROJECT_SOURCE_DIR}/src) | ||
- | ||
-set_target_properties(argtable3 argtable3_static PROPERTIES | ||
+set_target_properties(argtable3 PROPERTIES | ||
VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} | ||
SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}) | ||
+target_include_directories(argtable3 PRIVATE ${PROJECT_SOURCE_DIR}/src) | ||
+else() | ||
+add_library(argtable3_static STATIC ${ARGTABLE3_SRC_FILES}) | ||
+endif() | ||
|
||
include(GNUInstallDirs) | ||
if(UNIX OR MSYS OR MINGW) | ||
@@ -89,14 +89,16 @@ | ||
elseif(WIN32) | ||
set(ARGTABLE3_INSTALL_CMAKEDIR "cmake") | ||
endif() | ||
- | ||
+if(BUILD_SHARED_LIBS) | ||
install(TARGETS argtable3 | ||
EXPORT ${ARGTABLE3_PACKAGE_NAME}Config | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
+else() | ||
install(TARGETS argtable3_static | ||
EXPORT ${ARGTABLE3_PACKAGE_NAME}Config | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
+endif() | ||
install(FILES "${PROJECT_SOURCE_DIR}/src/argtable3.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
install(EXPORT ${ARGTABLE3_PACKAGE_NAME}Config DESTINATION ${ARGTABLE3_INSTALL_CMAKEDIR}) |
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
versions: | ||
"3.2.0": | ||
folder: "all" | ||
"3.1.5": | ||
folder: "all" |