Buildsystem: Minor PCH building changes

* *PCH.cpp are now only compiled with MSVC, other compilers use custom helper commands to generate the precompiled header
* Don't call the linker for pch helpertargets

(cherry picked from commit 137f5e78877ef1b81f4dca68dd43268e325aeeed)
This commit is contained in:
Shauren authored and Aokromes committed 2017-06-25 14:16:31 +02:00
1 parent 5c52232b0d
commit 1808fdd7b2
7 files changed
+22 -8

No files matched your search

+3 -1
View File
@@ -17,12 +17,14 @@ CollectSourceFiles(
if (USE_COREPCH)
set(PRIVATE_PCH_HEADER PrecompiledHeaders/databasePCH.h)
set(PRIVATE_PCH_SOURCE PrecompiledHeaders/databasePCH.cpp)
if (MSVC)
list(INSERT PRIVATE_SOURCES 0 PrecompiledHeaders/databasePCH.cpp)
endif (MSVC)
endif()
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_library(database
${PRIVATE_PCH_SOURCE}
${PRIVATE_SOURCES}
)