Commit 5500882f authored by Ghislain MARY's avatar Ghislain MARY

Do not use object library when building with CMake.

parent d5e7346f
......@@ -321,11 +321,8 @@ endif()
set(LIBS ${MEDIASTREAMER2_LIBRARIES})
add_library(mswebrtc-objects OBJECT ${SOURCE_FILES})
set_target_properties(mswebrtc-objects PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
if(ENABLE_STATIC)
add_library(mswebrtc-static STATIC $<TARGET_OBJECTS:mswebrtc-objects>)
add_library(mswebrtc-static STATIC ${SOURCE_FILES})
set_target_properties(mswebrtc-static PROPERTIES OUTPUT_NAME mswebrtc)
target_link_libraries(mswebrtc-static ${LIBS})
install(TARGETS mswebrtc-static
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment