From b681f877e9018c1298e437365e2b0e7dcfad76f7 Mon Sep 17 00:00:00 2001 From: beerpsi Date: Sun, 31 Dec 2023 13:16:09 +0700 Subject: [PATCH] Remove dependency on a specific compiler --- aimeio/CMakeLists.txt | 5 +---- chuniio/CMakeLists.txt | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/aimeio/CMakeLists.txt b/aimeio/CMakeLists.txt index fd16da8..ac54351 100644 --- a/aimeio/CMakeLists.txt +++ b/aimeio/CMakeLists.txt @@ -3,10 +3,7 @@ project(aimeio_brokenithm) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") include_directories("${CMAKE_SOURCE_DIR}/include/") -set(CMAKE_CXX_STANDARD 17) - -set(CMAKE_C_COMPILER "gcc") -set(CMAKE_CXX_COMPILER "g++") +set(CMAKE_C_STANDARD 11) link_directories(src) add_library(aimeio_brokenithm SHARED src/aimeio.c diff --git a/chuniio/CMakeLists.txt b/chuniio/CMakeLists.txt index 820ec90..1fe130f 100644 --- a/chuniio/CMakeLists.txt +++ b/chuniio/CMakeLists.txt @@ -3,10 +3,7 @@ project(chuniio_brokenithm) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") include_directories("${CMAKE_SOURCE_DIR}/include/") -set(CMAKE_CXX_STANDARD 17) - -set(CMAKE_C_COMPILER "gcc") -set(CMAKE_CXX_COMPILER "g++") +set(CMAKE_C_STANDARD 11) link_directories(src) add_library(chuniio_brokenithm SHARED src/chuniio.c