1 SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
2 SET(COMPILE_WARNING_FLAGS "-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch")
3 SET(COMPILE_OPTIMIZATION_FLAGS "-O2")
5 #define the flags for profiling if desired:
6 IF (ENABLE_PROFILING)
7 SET(COMPILE_PROFILING_FLAGS "-pg")
8 SET(LINK_PROFILING_FLAGS "-pg")
9 ENDIF (ENABLE_PROFILING)
12 SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\"")
13 SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DHAVE_CONFIG_H -D_INTL_REDIRECT_INLINE ")
15 IF (WIN32)
16 SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DXP_WIN")
17 ELSE(WIN32)
18 # SET(DEFINE_FLAGS "${DEFINE_FLAGS} ")
19 ENDIF (WIN32)
21 # for Inkboard:
22 SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DHAVE_SSL -DRELAYTOOL_SSL=\"static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }\" ")
24 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
25 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
27 SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} ")