No option format for dependencies, just set()

This commit is contained in:
Pcornat 2026-01-22 20:59:55 +01:00
commit 259df75dfc
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD

View file

@ -58,27 +58,27 @@ if (${ENABLE_COVERAGE})
list(APPEND LINKER_FLAGS gcov) list(APPEND LINKER_FLAGS gcov)
endif () endif ()
option(BUILD_SHARED_LIBS "Build package with shared libraries." ON) set(BUILD_SHARED_LIBS ON)
option(ASSIMP_NO_EXPORT "Disable Assimp's export functionality." ON) set(ASSIMP_NO_EXPORT ON)
option(ASSIMP_INSTALL "Disable this if you want to use assimp as a submodule." OFF) set(ASSIMP_INSTALL OFF)
option(ASSIMP_BUILD_ZLIB "Build your own zlib" OFF) set(ASSIMP_BUILD_ZLIB OFF)
option(ASSIMP_BUILD_TESTS "If the test suite for Assimp is built in addition to the library." OFF) set(ASSIMP_BUILD_TESTS OFF)
option(ASSIMP_WARNINGS_AS_ERRORS "Treat all warnings as errors." OFF) set(ASSIMP_WARNINGS_AS_ERRORS OFF)
option(ASSIMP_INSTALL_PDB "Install MSVC debug files." OFF) set(ASSIMP_INSTALL_PDB OFF)
option(ASSIMP_INJECT_DEBUG_POSTFIX "Inject debug postfix in .a/.so/.dll lib names" OFF) set(ASSIMP_INJECT_DEBUG_POSTFIX OFF)
if (CMAKE_BUILD_TYPE STREQUAL "Debug") if (CMAKE_BUILD_TYPE STREQUAL "Debug")
option(ASSIMP_INJECT_DEBUG_POSTFIX "Inject debug postfix in .a/.so/.dll lib names" ON) set(ASSIMP_INJECT_DEBUG_POSTFIX ON)
else () else ()
option(ASSIMP_INJECT_DEBUG_POSTFIX "Inject debug postfix in .a/.so/.dll lib names" OFF) set(ASSIMP_INJECT_DEBUG_POSTFIX OFF)
endif () endif ()
add_subdirectory(external/assimp EXCLUDE_FROM_ALL) add_subdirectory(external/assimp EXCLUDE_FROM_ALL)
option(SPDLOG_ENABLE_PCH "Build static or shared library using precompiled header to speed up compilation time" ON) set(SPDLOG_ENABLE_PCH ON)
option(SPDLOG_BUILD_WARNINGS "Enable compiler warnings" ON) set(SPDLOG_BUILD_WARNINGS ON)
option(SPDLOG_PREVENT_CHILD_FD "Prevent from child processes to inherit log file descriptors" ON) set(SPDLOG_PREVENT_CHILD_FD ON)
option(SPDLOG_NO_THREAD_ID "prevent spdlog from querying the thread id on each log call if thread id is not needed" ON) set(SPDLOG_NO_THREAD_ID ON)
option(SPDLOG_NO_TLS "prevent spdlog from using thread local storage" ON) set(SPDLOG_NO_TLS ON)
option(SPDLOG_NO_ATOMIC_LEVELS "prevent spdlog from using of std::atomic log levels (use only if your code never modifies log levels concurrently" ON) set(SPDLOG_NO_ATOMIC_LEVELS ON)
add_subdirectory(external/spdlog EXCLUDE_FROM_ALL) add_subdirectory(external/spdlog EXCLUDE_FROM_ALL)
add_executable(LearnGtk4 main.cpp add_executable(LearnGtk4 main.cpp