From b5fa9cf029f9d97d0b447bc197ff28ef636edcb1 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sat, 13 Jan 2024 13:38:02 +0100 Subject: [PATCH] Undo Makefile changes --- cmake/CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 0ffb8e5..c2b14cc 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -7,6 +7,10 @@ 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 (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 @@ -21,14 +25,6 @@ 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)