File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed
modules/openapi-generator/src/main/resources/C-libcurl Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ include(PreTarget.cmake OPTIONAL)
91
91
set(PROJECT_VERSION_STRING "${ PROJECT_VERSION_MAJOR} .${ PROJECT_VERSION_MINOR} .${ PROJECT_VERSION_PATCH} ")
92
92
93
93
# Add library with project file with project name as library name
94
- add_library(${ pkgName} ${ SRCS} ${ HDRS} )
94
+ if(NOT BUILD_STATIC_LIBS)
95
+ add_library(${ pkgName} ${ SRCS} ${ HDRS} )
96
+ else()
97
+ add_library(${ pkgName} STATIC ${ SRCS} ${ HDRS} )
98
+ endif()
95
99
# Link dependent libraries
96
100
if(NOT CMAKE_VERSION VERSION_LESS 3.4)
97
101
target_link_libraries(${ pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto)
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ include(PreTarget.cmake OPTIONAL)
69
69
set (PROJECT_VERSION_STRING "${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} .${PROJECT_VERSION_PATCH} " )
70
70
71
71
# Add library with project file with project name as library name
72
- add_library (${pkgName} ${SRCS} ${HDRS} )
72
+ if (NOT BUILD_STATIC_LIBS )
73
+ add_library (${pkgName} ${SRCS} ${HDRS} )
74
+ else ()
75
+ add_library (${pkgName} STATIC ${SRCS} ${HDRS} )
76
+ endif ()
73
77
# Link dependent libraries
74
78
if (NOT CMAKE_VERSION VERSION_LESS 3.4 )
75
79
target_link_libraries (${pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto )
Original file line number Diff line number Diff line change @@ -93,7 +93,11 @@ include(PreTarget.cmake OPTIONAL)
93
93
set (PROJECT_VERSION_STRING "${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} .${PROJECT_VERSION_PATCH} " )
94
94
95
95
# Add library with project file with project name as library name
96
- add_library (${pkgName} ${SRCS} ${HDRS} )
96
+ if (NOT BUILD_STATIC_LIBS )
97
+ add_library (${pkgName} ${SRCS} ${HDRS} )
98
+ else ()
99
+ add_library (${pkgName} STATIC ${SRCS} ${HDRS} )
100
+ endif ()
97
101
# Link dependent libraries
98
102
if (NOT CMAKE_VERSION VERSION_LESS 3.4 )
99
103
target_link_libraries (${pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto )
Original file line number Diff line number Diff line change @@ -93,7 +93,11 @@ include(PreTarget.cmake OPTIONAL)
93
93
set (PROJECT_VERSION_STRING "${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} .${PROJECT_VERSION_PATCH} " )
94
94
95
95
# Add library with project file with project name as library name
96
- add_library (${pkgName} ${SRCS} ${HDRS} )
96
+ if (NOT BUILD_STATIC_LIBS )
97
+ add_library (${pkgName} ${SRCS} ${HDRS} )
98
+ else ()
99
+ add_library (${pkgName} STATIC ${SRCS} ${HDRS} )
100
+ endif ()
97
101
# Link dependent libraries
98
102
if (NOT CMAKE_VERSION VERSION_LESS 3.4 )
99
103
target_link_libraries (${pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto )
You can’t perform that action at this time.
0 commit comments