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 2a2f97e commit 4ba3c61Copy full SHA for 4ba3c61
CMakeLists.txt
@@ -21,7 +21,18 @@ if (NOT MSVC)
21
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -std=c99 -pedantic -Wall")
22
endif ()
23
24
+# https://cmake.org/Wiki/BuildingWinDLL
25
+# Allow the developer to select if Dynamic or Static libraries are built, default is static.
26
+OPTION (BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
27
+# Set the LIB_TYPE variable to STATIC
28
+SET (LIB_TYPE STATIC)
29
+IF (BUILD_SHARED_LIBS)
30
+ # User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'
31
+ SET (LIB_TYPE SHARED)
32
+ENDIF (BUILD_SHARED_LIBS)
33
+
34
add_library (utf8proc
35
+ ${LIB_TYPE}
36
utf8proc.c
37
utf8proc.h
38
)
0 commit comments