1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-21 17:17:06 +02:00

Add include path of a more recent version of fuzzylite, which is required to build it with gcc 12.2.0

a651f3d13e
This commit is contained in:
Alexander Wilms 2023-09-16 05:13:16 +00:00
parent 2d6ef9049a
commit 6c15e5b426
4 changed files with 19 additions and 5 deletions

View File

@ -8,7 +8,11 @@
*
*/
#pragma once
#include <fl/Headers.h>
#if __has_include(<fuzzylite/Headers.h>)
# include <fuzzylite/Headers.h>
#else
# include <fl/Headers.h>
#endif
#include "../Goals/AbstractGoal.h"
VCMI_LIB_NAMESPACE_BEGIN

View File

@ -8,7 +8,11 @@
*
*/
#pragma once
#include "fl/Headers.h"
#if __has_include(<fuzzylite/Headers.h>)
# include <fuzzylite/Headers.h>
#else
# include <fl/Headers.h>
#endif
#include "../Goals/CGoal.h"
#include "../Pathfinding/AIPathfinder.h"

View File

@ -8,7 +8,11 @@
*
*/
#pragma once
#include <fl/Headers.h>
#if __has_include(<fuzzylite/Headers.h>)
# include <fuzzylite/Headers.h>
#else
# include <fl/Headers.h>
#endif
#include "Goals/AbstractGoal.h"
VCMI_LIB_NAMESPACE_BEGIN

View File

@ -21,11 +21,13 @@
find_path(fuzzylite_INCLUDE_DIR
fl/fuzzylite.h
fuzzylite/fuzzylite.h
HINTS
ENV FLDIR
PATH_SUFFIXES
fl
include/fl
include/fl
include/fuzzylite
include
)
@ -62,4 +64,4 @@ if (NOT TARGET "fuzzylite::fuzzylite" AND fuzzylite_FOUND)
IMPORTED_LOCATION "${fuzzylite_LIBRARY}")
endif()
mark_as_advanced(fuzzylite_LIBRARY fuzzylite_INCLUDE_DIR)
mark_as_advanced(fuzzylite_LIBRARY fuzzylite_INCLUDE_DIR)