Move ENABLE_ options to ConfigureFeatures.cmake

This commit is contained in:
Jesse Talavera-Greenberg 2023-06-24 12:53:27 -04:00
parent ecdef6c330
commit 84101548f6
2 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,6 @@ FetchContent_GetProperties(libretro-common)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${FETCHCONTENT_BASE_DIR}/melonds-src/cmake" "${CMAKE_MODULE_PATH}")
FetchContent_MakeAvailable(melonDS libretro-common)
option(ENABLE_THREADS "Build with thread support, if supported by the target." ON)
include(cmake/ConfigureFeatures.cmake)
include(cmake/libretro-common.cmake)

View File

@ -1,6 +1,10 @@
# Detects the presence of various libraries or functions and sets the appropriate HAVE_* variables.
# Other files are used to actually configure the build.
option(ENABLE_EGL "Build with EGL support, if supported by the target." OFF)
option(ENABLE_THREADS "Build with thread support, if supported by the target." ON)
option(ENABLE_ZLIB "Build with zlib support, if supported by the target." ON)
if (ENABLE_THREADS)
find_package(Threads)