From 999dc675fa16b12f07bf2e2743b74ea589578d84 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 30 Oct 2021 12:54:57 +0200 Subject: [PATCH] Remove precompiled header, as it only caused issues. --- CMakeLists.txt | 1 - src/Collections/Dictionary.hpp | 1 + src/Precompiled.hxx | 22 ---------------------- src/String/BasicStringView.hpp | 3 +++ src/String/StringView.hpp | 2 ++ 5 files changed, 6 insertions(+), 23 deletions(-) delete mode 100644 src/Precompiled.hxx diff --git a/CMakeLists.txt b/CMakeLists.txt index 907b301..37fada1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,6 @@ endif () # Grab all cpp and hpp files in our source directories. file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp" "CInterface/*.hpp") add_library(Arbutils ${LIBTYPE} ${SRC_FILES}) -target_precompile_headers(Arbutils PUBLIC src/Precompiled.hxx) # If we are building for Windows we need to set some specific variables. if (WINDOWS) diff --git a/src/Collections/Dictionary.hpp b/src/Collections/Dictionary.hpp index 068b348..46c70de 100644 --- a/src/Collections/Dictionary.hpp +++ b/src/Collections/Dictionary.hpp @@ -1,5 +1,6 @@ #ifndef ARBUTILS_DICTIONARY_HPP #define ARBUTILS_DICTIONARY_HPP +#include #include "../Ensure.hpp" namespace ArbUt { diff --git a/src/Precompiled.hxx b/src/Precompiled.hxx deleted file mode 100644 index 42537ce..0000000 --- a/src/Precompiled.hxx +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef ARBUTILS_PRECOMPILED_HXX -#define ARBUTILS_PRECOMPILED_HXX - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#endif // ARBUTILS_PRECOMPILED_HXX diff --git a/src/String/BasicStringView.hpp b/src/String/BasicStringView.hpp index ce2a659..bcdac53 100644 --- a/src/String/BasicStringView.hpp +++ b/src/String/BasicStringView.hpp @@ -1,5 +1,8 @@ #ifndef ARBUTILS_BASICSTRINGVIEW_HPP #define ARBUTILS_BASICSTRINGVIEW_HPP +#include +#include +#include /// \defgroup Strings Strings /// \brief Group of non-editable strings with faster hashing. diff --git a/src/String/StringView.hpp b/src/String/StringView.hpp index 06a1858..4110be6 100644 --- a/src/String/StringView.hpp +++ b/src/String/StringView.hpp @@ -1,6 +1,8 @@ #ifndef ARBUTILS_STRINGVIEW_HPP #define ARBUTILS_STRINGVIEW_HPP +#include +#include #include "BasicStringView.hpp" #if WINDOWS