From aa0aae25f24704413639ced1558a34c7ce1eb4c8 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 19 Dec 2010 22:54:45 +0000 Subject: [PATCH] Add DEVEL_VERSION to cmake. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36952 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/CMakeLists.txt | 1 + development/cmake/src/CMakeLists.txt | 3 +++ development/cmake/src/frontends/qt4/CMakeLists.txt | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 0e129f271f..651041d2b3 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -57,6 +57,7 @@ LYX_OPTION(ASPELL "Require aspell" OFF ALL) LYX_OPTION(ENCHANT "Require Enchant" OFF ALL) LYX_OPTION(HUNSPELL "Require Hunspell" OFF ALL) LYX_OPTION(DEBUG "Build debug version" OFF ALL) +LYX_OPTION(DEVEL_VERSION "Build developer version" OFF ALL) LYX_OPTION(RELEASE "Build release version" ON ALL) LYX_OPTION(PROFILE "Build profile version" OFF GCC) LYX_OPTION(USE_EXTERNAL_BOOST "Use external boost" OFF GCC) diff --git a/development/cmake/src/CMakeLists.txt b/development/cmake/src/CMakeLists.txt index 061252f9e5..abfe59df83 100644 --- a/development/cmake/src/CMakeLists.txt +++ b/development/cmake/src/CMakeLists.txt @@ -72,6 +72,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} lyx_add_msvc_pch(lyx) +if (LYX_DEVEL_VERSION) + add_definitions(-DDEVEL_VERSION) +endif() if (LYX_MERGE_FILES) if(dont_merge) diff --git a/development/cmake/src/frontends/qt4/CMakeLists.txt b/development/cmake/src/frontends/qt4/CMakeLists.txt index e0553a1611..4fbd30826b 100644 --- a/development/cmake/src/frontends/qt4/CMakeLists.txt +++ b/development/cmake/src/frontends/qt4/CMakeLists.txt @@ -38,6 +38,10 @@ include_directories( ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) +if (LYX_DEVEL_VERSION) + add_definitions(-DDEVEL_VERSION) +endif() + if(LYX_MERGE_FILES) lyx_const_touched_files(_allinone frontends_qt4_sources) set(depends_moc_uic ${frontends_qt4_headers} ${ui_files}) -- 2.39.2