add forgotten macro to enable pchs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32595 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2009-12-19 20:18:46 +00:00
parent e17a01910e
commit 3dcec5edff

View File

@ -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()