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.
2 parents dbbd973 + 7afa081 commit 427259fCopy full SHA for 427259f
CMakeLists.txt
@@ -105,6 +105,16 @@ set(headers
105
src/xml.h
106
src/dict.h)
107
108
+# create static libyang library
109
+if(STATIC)
110
+ add_library(yang_static STATIC ${libsrc})
111
+ set_target_properties(yang_static PROPERTIES OUTPUT_NAME yang)
112
+ target_link_libraries(yang_static m)
113
+ target_link_libraries(yang_static ${CMAKE_THREAD_LIBS_INIT})
114
+ target_link_libraries(yang_static ${PCRE_LIBRARIES})
115
+ install(TARGETS yang_static DESTINATION ${LIB_INSTALL_DIR})
116
+endif(STATIC)
117
+
118
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
119
add_library(yangobj OBJECT ${libsrc})
120
add_library(yang SHARED $<TARGET_OBJECTS:yangobj>)
0 commit comments