Commit 5d888d61 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Require C99 standard.

parent b6065ba2
......@@ -176,6 +176,7 @@ if(ENABLE_STATIC)
set_target_properties(bellesip-static PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
set_property(TARGET bellesip-static PROPERTY C_STANDARD 99)
set_property(TARGET bellesip-static PROPERTY C_STANDARD_REQUIRED TRUE)
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
......@@ -191,6 +192,7 @@ if(ENABLE_SHARED)
set_target_properties(bellesip PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
set_property(TARGET bellesip PROPERTY C_STANDARD 99)
set_property(TARGET bellesip PROPERTY C_STANDARD_REQUIRED TRUE)
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
......
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