From fdcff54e1d845343cdfe39040aac6f7ff9b4163a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 10 Apr 2023 08:52:32 +0200 Subject: cmake: remove precompiled headers They were having problems including fmtlib and robin_map. --- main/CMakeLists.txt | 14 +------------- main/precomp.hpp | 22 ---------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 main/precomp.hpp (limited to 'main') diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 50e1bc91..fe32d1d5 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -8,17 +8,5 @@ target_link_libraries(${self} PUBLIC Magnum::GL Magnum::Trade fmt::fmt + tsl::robin_map ) - -if(NOT SDL2_INCLUDE_DIRS) - if(NOT TARGET SDL2::SDL2) - find_package(SDL2 QUIET REQUIRED) - else() - get_target_property(SDL2_INCLUDE_DIRS SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES) - endif() -endif() -include_directories("${SDL2_INCLUDE_DIRS}") - -if(FLOORMAT_PRECOMPILED-HEADERS) - target_precompile_headers(${self} PRIVATE precomp.hpp) -endif() diff --git a/main/precomp.hpp b/main/precomp.hpp deleted file mode 100644 index 3f60a071..00000000 --- a/main/precomp.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -#include "src/precomp.hpp" -#include "floormat/main.hpp" -#include "floormat/app.hpp" -#include "floormat/settings.hpp" -#include "main-impl.hpp" - -#include -#include -#include -#include -#include -#include - -#include -#include - -#if __has_include() -#include -#include -#include -#endif -- cgit v1.2.3