Add DEVEL_VERSION to cmake.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36952 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-12-19 22:54:45 +00:00
parent 121fdba366
commit aa0aae25f2
3 changed files with 8 additions and 0 deletions

View 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)

View 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)

View 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})