]> git.lyx.org Git - lyx.git/commitdiff
Add DEVEL_VERSION to cmake.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 19 Dec 2010 22:54:45 +0000 (22:54 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 19 Dec 2010 22:54:45 +0000 (22:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36952 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt
development/cmake/src/CMakeLists.txt
development/cmake/src/frontends/qt4/CMakeLists.txt

index 0e129f271f11797608b4243a98b723e06b775cdf..651041d2b344c7b8f4154a5f3e1d4bce7822cfec 100644 (file)
@@ -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)
index 061252f9e5b5593afe76334c0db44b676686c383..abfe59df83cf960b2d3ee3669718af8661c36caa 100644 (file)
@@ -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)
index e0553a161108e3ad3f9c930ad5e5b3fbd9da3648..4fbd30826bd8ecbc2e31091db09726a427877522 100644 (file)
@@ -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})