]> git.lyx.org Git - features.git/commitdiff
cmake: fix merged build
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 15 Jul 2010 14:25:59 +0000 (14:25 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 15 Jul 2010 14:25:59 +0000 (14:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34905 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/config.h.cmake
development/cmake/src/CMakeLists.txt

index 15d96cdcc64d4cd48f6b8e4ed98620ee116a5d3d..4b28a2566998cd5671e1e8258fb2891460826526 100644 (file)
@@ -86,4 +86,9 @@
 #undef IN
 #endif
 
+#ifdef KeyPress
+#undef KeyPress
+#endif
+
+
 
index 3e1bd1ffd5730a43dce8f83093e16d5ec184dfe0..d2f4a90f5c1ce077169887af0cbc6ff45170f918 100644 (file)
@@ -51,18 +51,21 @@ list(REMOVE_ITEM lyx_headers
 if (HUNSPELL_FOUND)
        list(APPEND lyx_sources ${TOP_SRC_DIR}/src/HunspellChecker.cpp)
        list(APPEND lyx_headers ${TOP_SRC_DIR}/src/HunspellChecker.h)
+       set(dont_merge ${dont_merge} ${TOP_SRC_DIR}/src/HunspellChecker.cpp)
 endif()
 
 if (ASPELL_FOUND)
        include_directories(${ASPELL_INCLUDE_DIR})
        list(APPEND lyx_sources ${TOP_SRC_DIR}/src/AspellChecker.cpp)
        list(APPEND lyx_headers ${TOP_SRC_DIR}/src/AspellChecker.h)
+       set(dont_merge ${dont_merge} ${TOP_SRC_DIR}/src/AspellChecker.cpp)
 endif()
 
 if (ENCHANT_FOUND)
   include_directories("${ENCHANT_INCLUDE_DIR}")
   list(APPEND lyx_sources ${TOP_SRC_DIR}/src/EnchantChecker.cpp)
   list(APPEND lyx_headers ${TOP_SRC_DIR}/src/EnchantChecker.h)
+  set(dont_merge ${dont_merge} ${TOP_SRC_DIR}/src/EnchantChecker.cpp)
 endif()
 
 lyx_automoc(${TOP_SRC_DIR}/src/Compare.cpp)
@@ -77,8 +80,9 @@ lyx_add_msvc_pch(lyx)
 
 
 if (LYX_MERGE_FILES)
-       lyx_const_touched_files(_allinone  lyx_sources)
-       set(lyx_sources ${_allinone_files})
+       list(REMOVE_ITEM lyx_sources ${dont_merge})
+       lyx_const_touched_files(_allinone lyx_sources)
+       set(lyx_sources ${_allinone_files} ${dont_merge})
 endif()
 
 if (LYX_VLD)