Commit d892c1c3 authored by Ghislain MARY's avatar Ghislain MARY

Fix desktop build with debug on Windows.

parent aa0677fc
......@@ -899,3 +899,11 @@ macro(linphone_builder_add_cmake_option BUILDER_NAME OPTION)
endif()
list(APPEND EP_${BUILDER_NAME}_CMAKE_OPTIONS ${OPTION})
endmacro()
macro(linphone_builder_add_extra_cflags BUILDER_NAME CFLAGS)
set(EP_${BUILDER_NAME}_EXTRA_CFLAGS "${EP_${BUILDER_NAME}_EXTRA_CFLAGS} ${CFLAGS}")
endmacro()
macro(linphone_builder_add_extra_ldflags BUILDER_NAME LDFLAGS)
set(EP_${BUILDER_NAME}_EXTRA_LDFLAGS "${EP_${BUILDER_NAME}_EXTRA_LDFLAGS} ${LDFLAGS}")
endmacro()
......@@ -90,6 +90,7 @@ endif()
# ms2
if(WIN32)
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=YES")
linphone_builder_add_extra_ldflags(ms2 "/SAFESEH:NO")
else()
linphone_builder_add_cmake_option(ms2 "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}")
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