From 288c2120c673d4568e7fac9eda93f2fa73e8280b Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Fri, 12 Jan 2024 20:59:45 +0100 Subject: [PATCH] Test --- cmake/CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a617a78..0ffb8e5 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -7,14 +7,6 @@ option(WITH_CPP_TESTS "Enable building C++ wrapper tests." ON) option(WITH_STATIC "Enable building static library." OFF) option(THREADING "Build with threading support." ON) -if(CMAKE_SYSTEM_NAME MATCHES "Windows") - set(WITH_STATIC 1) -endif() - -if (WITH_STATIC) - message(STATUS "If you are using the static library build, please keep in mind (and inform yourself of the implications) that liblo is licensed with LGPL v2.1+.") -endif() - if(NOT CMAKE_BUILD_TYPE) message(STATUS "Setting build type to 'Release' as none was specified.") set(CMAKE_BUILD_TYPE "Release" CACHE STRING @@ -29,6 +21,14 @@ else() project(${PROJECT} LANGUAGES C) endif() +if(CMAKE_SYSTEM_NAME STREQUAL "Windows") + set(WITH_STATIC 1) +endif() + +if (WITH_STATIC) + message(STATUS "If you are using the static library build, please keep in mind (and inform yourself of the implications) that liblo is licensed with LGPL v2.1+.") +endif() + include(CheckIncludeFiles) include(CheckSymbolExists)