Commit a315aa21 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix compilation

parent 937d236d
......@@ -137,6 +137,7 @@ set(BELLE_SIP_SOURCE_FILES_C
${SIP_MESSAGE_GENERATED_SOURCE_FILES_C}
${TUNNEL_SOURCE_FILES_C}
)
if(ANDROID)
list(APPEND BELLE_SIP_SOURCE_FILES_C wakelock.c)
endif()
......@@ -174,6 +175,7 @@ if(ENABLE_STATIC)
if(NOT "${LINK_FLAGS_STR}" STREQUAL "")
set_target_properties(bellesip-static PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
set_property(TARGET bellesip-static PROPERTY C_STANDARD 99)
install(TARGETS bellesip-static EXPORT ${EXPORT_TARGETS_NAME}Targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
......@@ -188,6 +190,7 @@ if(ENABLE_SHARED)
if(NOT "${LINK_FLAGS_STR}" STREQUAL "")
set_target_properties(bellesip PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
set_property(TARGET bellesip PROPERTY C_STANDARD 99)
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/bellesip.pdb
......@@ -203,3 +206,6 @@ if(ENABLE_SHARED)
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
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