From: Bastian Dehn Date: Thu, 9 Jan 2025 16:51:03 +0000 (+0100) Subject: fix cmake set compiler to gcc X-Git-Tag: v1.0.26^2~13 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=34fff83608a9bcb1534290ad94180d728b56123d;p=sane-kds-s2000w-net.git fix cmake set compiler to gcc --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 259c257..91541f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) +SET(CMAKE_C_COMPILER gcc) + PROJECT("kds-s2000w-net") SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release") @@ -12,7 +14,6 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Debug") SET(CMAKE_C_FLAGS "-Wall -g" CACHE STRING "debug compiler flags" FORCE) ENDIF() -SET(CMAKE_C_COMPILER gcc CACHE STRING "compiler") IF (RUN_TESTS) SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "debug" FORCE) SET(CMAKE_C_FLAGS "-fPIC \ @@ -39,6 +40,7 @@ IF (RUN_TESTS) ENDIF() MESSAGE(STATUS "CMAKE_BUILD_TYPE " ${CMAKE_BUILD_TYPE}) +MESSAGE(STATUS "CMAKE_C_COMPILER " ${CMAKE_C_COMPILER}) MESSAGE(STATUS "CMAKE_C_FLAGS " ${CMAKE_C_FLAGS}) ADD_SUBDIRECTORY(src)