We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a0935 commit 08e22cdCopy full SHA for 08e22cd
1 file changed
modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache
@@ -91,7 +91,11 @@ include(PreTarget.cmake OPTIONAL)
91
set(PROJECT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
92
93
# Add library with project file with project name as library name
94
-add_library(${pkgName} ${SRCS} ${HDRS})
+if(NOT BUILD_STATIC_LIBS)
95
+ add_library(${pkgName} ${SRCS} ${HDRS})
96
+else()
97
+ add_library(${pkgName} STATIC ${SRCS} ${HDRS})
98
+endif()
99
# Link dependent libraries
100
if(NOT CMAKE_VERSION VERSION_LESS 3.4)
101
target_link_libraries(${pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto)
0 commit comments