aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-06-08 00:37:15 +0200
committerShauren <shauren.trinity@gmail.com>2017-06-08 00:37:15 +0200
commit137f5e78877ef1b81f4dca68dd43268e325aeeed (patch)
tree6d0d2bf8124c1669023d4a19144141b5d2b561af /src/common
parent271ca88f6d2b1c1a7ee2c095b997ee0ab3587718 (diff)
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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 626e1706098..3e238a8c367 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -26,6 +26,9 @@ list(APPEND PRIVATE_SOURCES
if (USE_COREPCH)
set(PRIVATE_PCH_HEADER PrecompiledHeaders/commonPCH.h)
set(PRIVATE_PCH_SOURCE PrecompiledHeaders/commonPCH.cpp)
+ if (MSVC)
+ list(INSERT PRIVATE_SOURCES 0 PrecompiledHeaders/commonPCH.cpp)
+ endif (MSVC)
endif (USE_COREPCH)
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
@@ -33,7 +36,6 @@ GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_definitions(-DTRINITY_API_EXPORT_COMMON)
add_library(common
- ${PRIVATE_PCH_SOURCE}
${PRIVATE_SOURCES}
)