]> git.lyx.org Git - lyx.git/blobdiff - CMakeLists.txt
Cmake build: Unconditionally create many install targets
[lyx.git] / CMakeLists.txt
index 48cc85a13c87b0a3e19e69f38ff59e1014155cdd..35e47e4bc6ed242f1c6f65d8b0006f4b02e532d8 100644 (file)
@@ -153,7 +153,7 @@ LYX_OPTION(STDLIB_DEBUG         "Use debug stdlib" OFF GCC)
 LYX_OPTION(PROFILE              "Build with options for gprof" OFF GCC)
 
 # MSVC specific
-LYX_OPTION(CONSOLE               "Show console on Windows, enforce with =FORCE" ON MSVC)
+LYX_OPTION(CONSOLE               "Show console on Windows" ON MSVC)
 LYX_OPTION(VLD                   "Use VLD with MSVC" OFF MSVC)
 LYX_OPTION(WALL                  "Enable all warnings" OFF MSVC)
 LYX_OPTION(DEPENDENCIES_DOWNLOAD "Download dependencies for MSVC 10" OFF MSVC)
@@ -188,11 +188,6 @@ if(LYX_INSTALL)
         if(WIN32 AND NOT MINGW)
                set(LYX_HUNSPELL ON)
        endif()
-       if(LYX_CONSOLE MATCHES "FORCE")
-               set(LYX_CONSOLE ON)
-       else()
-               set(LYX_CONSOLE OFF)
-       endif()
        set(LYX_PACKAGE_SUFFIX ON)
        if(NOT LYX_DEBUG)
                set(LYX_RELEASE ON)
@@ -795,7 +790,12 @@ else()
 endif()
 
 if(LYX_USE_STD_REGEX)
-  # Nothing to do
+  # Set only include path.
+  # Use internal boost, which is known to exist
+  # we don't need any libraries
+  set(Lyx_Boost_Libraries)
+  add_definitions(-DBOOST_USER_CONFIG=<config.h>)
+  include_directories(${TOP_SRC_DIR}/3rdparty/boost)
 else()
   # Using boost-regex
   if(LYX_EXTERNAL_BOOST)
@@ -1028,8 +1028,8 @@ if(LYX_INSTALL)
                endif()
                add_subdirectory(${LYX_CMAKE_DIR}/doc "${TOP_BINARY_DIR}/doc")
        endif()
-       include(../Install)
 endif()
+include(../Install)
 
 add_subdirectory(src "${TOP_BINARY_DIR}/src")
 add_subdirectory(lib/lyx2lyx "${TOP_BINARY_DIR}/lyx2lyx")