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 19dfba0 commit 7afa081Copy full SHA for 7afa081
CMakeLists.txt
@@ -111,6 +111,16 @@ set(headers
111
src/xml.h
112
src/dict.h)
113
114
+# create static libyang library
115
+if(STATIC)
116
+ add_library(yang_static STATIC ${libsrc})
117
+ set_target_properties(yang_static PROPERTIES OUTPUT_NAME yang)
118
+ target_link_libraries(yang_static m)
119
+ target_link_libraries(yang_static ${CMAKE_THREAD_LIBS_INIT})
120
+ target_link_libraries(yang_static ${PCRE_LIBRARIES})
121
+ install(TARGETS yang_static DESTINATION ${LIB_INSTALL_DIR})
122
+endif(STATIC)
123
+
124
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
125
add_library(yangobj OBJECT ${libsrc})
126
add_library(yang SHARED $<TARGET_OBJECTS:yangobj>)
0 commit comments