From ba643340089690a1cd60e58d4700f9647acd5a2c Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Thu, 21 Nov 2024 12:34:53 +0100 Subject: [PATCH] Move include_directories statement to old location --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 292adb4..1674220 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,11 +30,6 @@ include(FindPkgConfig) pkg_search_module(SDL2 REQUIRED sdl2) pkg_search_module(TINYGETTEXT QUIET tinygettext) -include_directories( - ${PROJECT_SOURCE_DIR}/include - ${SDL2_INCLUDE_DIRS} -) - # Link libraries if(BUILD_STATIC) set(CMAKE_CXX_FLAGS "-static ${CMAKE_CXX_FLAGS}") @@ -166,6 +161,11 @@ else() ) endif() +include_directories( + ${PROJECT_SOURCE_DIR}/include + ${SDL2_INCLUDE_DIRS} +) + if(TINYGETTEXT_FOUND OR BUILD_STATIC) message("-- tinygettext library found, building with translation support") if(NOT BUILD_STATIC)