git repos / sago_multi_scrambler_puzzle2

commit 636cb96a

Poul Sander · 2024-10-31 21:12
636cb96afff4cc5871ea9f74f1d739eb1935428e patch · browse files
parent 0fcf37e03c7c94805189fd6ece83f8db28b8daaa

Default embedded platform folders to ON

Changed files

M CMakeLists.txt before
diff --git a/CMakeLists.txt b/CMakeLists.txt index 86d298c..b604de1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.10.2)
project (sago_multi_scrambler_puzzle2)
find_package(Boost COMPONENTS program_options REQUIRED)
+option(USE_EMBEDDED_PLATFORM_FOLDERS "Use the embedded version of PlatformFolders" ON)
+
#Setup SDL2
find_package(SDL2 REQUIRED CONFIG)
include_directories(${SDL2_INCLUDE_DIRS})
@@ -17,7 +19,7 @@ include_directories(${SDL2TTF_INCLUDE_DIRS})
pkg_search_module(SDL2GFX REQUIRED SDL2_gfx)
include_directories(${SDL2GFX_INCLUDE_DIRS})
-if (SALAND_USE_EMBEDDED_PLATFORM_FOLDERS)
+if (USE_EMBEDDED_PLATFORM_FOLDERS)
message("Using embedded PlatformFolders")
add_subdirectory("embedded_libs/PlatformFolders-4.2.0" EXCLUDE_FROM_ALL)
message("Done processing PlatformFolders")