From d330483dd9f2ec8192e88581bb084b782432f6da Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 10 Jul 2010 13:57:59 +0200 Subject: [PATCH] Changed: #880 Use PCH under Linux with CMake --- code/ryzom/server/src/entities_game_service/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/ryzom/server/src/entities_game_service/CMakeLists.txt b/code/ryzom/server/src/entities_game_service/CMakeLists.txt index 418b1af7f..8a0648419 100644 --- a/code/ryzom/server/src/entities_game_service/CMakeLists.txt +++ b/code/ryzom/server/src/entities_game_service/CMakeLists.txt @@ -65,5 +65,9 @@ IF(WIN32) ENDIF(WIN32) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) +IF(WITH_PCH) + ADD_NATIVE_PRECOMPILED_HEADER(entities_game_service ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.cpp) +ENDIF(WITH_PCH) + INSTALL(TARGETS entities_game_service RUNTIME DESTINATION sbin COMPONENT services)