diff options
| author | Naios <naios-dev@live.de> | 2017-11-28 22:05:25 +0100 |
|---|---|---|
| committer | Naios <naios-dev@live.de> | 2017-12-17 20:22:34 +0100 |
| commit | 92f96fc10e70b2d62cce832837477d958e2afbe3 (patch) | |
| tree | 316d60a95c09afc4ec51bda9341ff49f6f92336d /src/server/worldserver | |
| parent | e60c1f84a7e13577a82046b02b214f9466d20a7c (diff) | |
Build: Use the cotire library for precompiled header handling
* Required for handling flags inherited by linked projects
correctly in the corresponding precompiled header.
* Reduces the maintenance effort for precompiled headers
Diffstat (limited to 'src/server/worldserver')
| -rw-r--r-- | src/server/worldserver/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/server/worldserver/PrecompiledHeaders/worldPCH.cpp | 18 |
2 files changed, 1 insertions, 23 deletions
diff --git a/src/server/worldserver/CMakeLists.txt b/src/server/worldserver/CMakeLists.txt index 94ab5e480f3..da3847cd566 100644 --- a/src/server/worldserver/CMakeLists.txt +++ b/src/server/worldserver/CMakeLists.txt @@ -23,10 +23,6 @@ endif() if (USE_COREPCH) set(PRIVATE_PCH_HEADER PrecompiledHeaders/worldPCH.h) - set(PRIVATE_PCH_SOURCE PrecompiledHeaders/worldPCH.cpp) - if (MSVC) - list(INSERT PRIVATE_SOURCES 0 PrecompiledHeaders/worldPCH.cpp) - endif (MSVC) endif() GroupSources(${CMAKE_CURRENT_SOURCE_DIR}) @@ -100,5 +96,5 @@ endif() # Generate precompiled header if( USE_COREPCH ) - add_cxx_pch(worldserver ${PRIVATE_PCH_HEADER} ${PRIVATE_PCH_SOURCE}) + add_cxx_pch(worldserver ${PRIVATE_PCH_HEADER}) endif() diff --git a/src/server/worldserver/PrecompiledHeaders/worldPCH.cpp b/src/server/worldserver/PrecompiledHeaders/worldPCH.cpp deleted file mode 100644 index c0824b5423f..00000000000 --- a/src/server/worldserver/PrecompiledHeaders/worldPCH.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "worldPCH.h" |
