Code

Cmake: added windows path to find modules.
[inkscape.git] / CMakeScripts / ConfigCompileFlags.cmake
1 SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
2 ADD_DEFINITIONS(-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch)
3 ADD_DEFINITIONS(-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)
11 ADD_DEFINITIONS(-DVERSION=\\\"${INKSCAPE_VERSION}\\\")
12 ADD_DEFINITIONS(${DEFINE_FLAGS} -DHAVE_CONFIG_H -D_INTL_REDIRECT_INLINE)
14 IF (WIN32)
15      ADD_DEFINITIONS(-DXP_WIN)
16 ENDIF (WIN32)
18 # for Inkboard:
19 ADD_DEFINITIONS(-DHAVE_SSL "-DRELAYTOOL_SSL=\"static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }\"")
21 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
22 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
24 SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} ")
25 #message(STATUS "${CMAKE_CXX_FLAGS}")