diff --git a/cmake/DependenciesConfig.cmake b/cmake/DependenciesConfig.cmake index a6e2cb59db..f4e9207847 100644 --- a/cmake/DependenciesConfig.cmake +++ b/cmake/DependenciesConfig.cmake @@ -19,5 +19,6 @@ cmake_dependent_option(USE_ANGELSCRIPT "use Angelscript" ON "TARGET Angelscript: find_package(microprofile CONFIG) option(USE_MICROPROFILE "use Microprofile" OFF) - -include(FixSDLTargets) \ No newline at end of file + +include(FixSDLTargets) +include(FixLibNoise) diff --git a/src/engine/map/TerrainGenerator.cxx b/src/engine/map/TerrainGenerator.cxx index dc93950c55..14e3d3d519 100644 --- a/src/engine/map/TerrainGenerator.cxx +++ b/src/engine/map/TerrainGenerator.cxx @@ -8,9 +8,11 @@ #include #include "json.hxx" - +#ifdef NOISE_IN_SUBDIR #include - +#else +#include +#endif #include using json = nlohmann::json;