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/scripts | |
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/scripts')
-rw-r--r-- | src/server/scripts/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/server/scripts/ScriptPCH.cpp | 19 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/server/scripts/CMakeLists.txt b/src/server/scripts/CMakeLists.txt index 3a241fcd95e..fdb19bfb440 100644 --- a/src/server/scripts/CMakeLists.txt +++ b/src/server/scripts/CMakeLists.txt @@ -91,10 +91,6 @@ endforeach() # Base sources which are used by every script project if (USE_SCRIPTPCH) set(PRIVATE_PCH_HEADER ScriptPCH.h) - set(PRIVATE_PCH_SOURCE ScriptPCH.cpp) - if (MSVC) - list(INSERT PRIVATE_SOURCES 0 ScriptPCH.cpp) - endif (MSVC) endif () GroupSources(${CMAKE_CURRENT_SOURCE_DIR}) @@ -161,9 +157,6 @@ foreach(SCRIPT_MODULE ${SCRIPT_MODULE_LIST}) GetProjectNameOfScriptModule(${SCRIPT_MODULE} SCRIPT_MODULE_PROJECT_NAME) # Add the module name to DYNAMIC_SCRIPT_MODULES list(APPEND DYNAMIC_SCRIPT_MODULE_PROJECTS ${SCRIPT_MODULE_PROJECT_NAME}) - if (USE_SCRIPTPCH AND MSVC) - list(INSERT SCRIPT_MODULE_PRIVATE_SOURCES 0 ScriptPCH.cpp) - endif (USE_SCRIPTPCH AND MSVC) # Create the script module project add_library(${SCRIPT_MODULE_PROJECT_NAME} SHARED ${SCRIPT_MODULE_PRIVATE_SOURCES} diff --git a/src/server/scripts/ScriptPCH.cpp b/src/server/scripts/ScriptPCH.cpp deleted file mode 100644 index 25425276d24..00000000000 --- a/src/server/scripts/ScriptPCH.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> - * - * 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 "ScriptPCH.h" |