diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index ba8f746e1c..5477d69129 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -281,7 +281,7 @@ if(NOT disable-pch) message(STATUS "-----") configure_file(${CMAKE_SOURCE_DIR}/pcheaders.h ${CMAKE_BINARY_DIR}/pcheaders.h) configure_file(${CMAKE_SOURCE_DIR}/config.cpp.cmake ${CMAKE_BINARY_DIR}/config_pch.cpp) - + add_definitions(-DLYX_ENABLE_PCH) if(MSVC AND NOT MERGE_FILES) macro(lyx_add_msvc_pch name_) @@ -301,7 +301,7 @@ if(NOT disable-pch) macro(lyx_add_msvc_pch name_) endmacro() macro(lyx_add_gcc_pch name_) - add_definitions(-DLYX_ENABLE_PCH -DLYX_PCH_STL -DLYX_PCH_BOOST -DLYX_PCH_QT4) + add_definitions(-DLYX_PCH_STL -DLYX_PCH_BOOST -DLYX_PCH_QT4) ADD_PRECOMPILED_HEADER(${name_} ${CMAKE_BINARY_DIR}/config_pch.cpp ${CMAKE_BINARY_DIR}/config.h.gch) endmacro() endif()