From: johanengelen Date: Mon, 31 Mar 2008 19:56:08 +0000 (+0000) Subject: cmake: add define flags X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0828dffabf3db4c3b4b297d5c24c0b333499737c;p=inkscape.git cmake: add define flags --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bb826bcc..672584657 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) SET(CMAKE_SKIP_RPATH:BOOL OFF) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts) INCLUDE(ConfigCompileFlags) -INCLUDE(ConfigInkscapeDepends) +#INCLUDE(ConfigInkscapeDepends) SET(CONFIG_H "${CMAKE_CURRENT_BINARY_DIR}/config.h") INCLUDE_DIRECTORIES (src/) diff --git a/CMakeScripts/ConfigCompileFlags.cmake b/CMakeScripts/ConfigCompileFlags.cmake index ed9783c4a..f82fd52bb 100644 --- a/CMakeScripts/ConfigCompileFlags.cmake +++ b/CMakeScripts/ConfigCompileFlags.cmake @@ -1,7 +1,18 @@ SET(COMPILE_WARNING_FLAGS "-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch") SET(COMPILE_OPTIMIZATION_FLAGS "-O2") -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\" ") +SET(DEFINE_FLAGS "-DHAVE_CONFIG_H -D_INTL_REDIRECT_INLINE ") + +IF (WIN32) + SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DXP_WIN") +ELSE(WIN32) +# SET(DEFINE_FLAGS "${DEFINE_FLAGS} ") +ENDIF (WIN32) + +# for Inkboard: +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; }\" ") + +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\" ") SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2") diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake index 1160b856d..607ce7601 100644 --- a/CMakeScripts/ConfigInkscapeDepends.cmake +++ b/CMakeScripts/ConfigInkscapeDepends.cmake @@ -50,7 +50,6 @@ ENDFOREACH(opt) message(STATUS "") message(STATUS "") -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2") INCLUDE (CheckIncludeFiles)