From 3fb23fc423f3af92f74e6c30cfa8c9154a0884c1 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 26 Mar 2021 23:08:09 +0100 Subject: [PATCH] Skip unnecessary C compiler checks --- CMakeLists.txt | 2 +- source/Irrlicht/CMakeLists.txt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b6a2f0..d23959d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.5) -project(Irrlicht) +project(Irrlicht CXX) set(IRRLICHT_VERSION_MAJOR 1) set(IRRLICHT_VERSION_MINOR 9) diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt index 28301c5..1bb86a8 100644 --- a/source/Irrlicht/CMakeLists.txt +++ b/source/Irrlicht/CMakeLists.txt @@ -12,9 +12,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$") set(CMAKE_CXX_FLAGS_RELEASE "-O3") - set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}) set(CMAKE_CXX_FLAGS_DEBUG "-g") - set(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG}) add_compile_options(-Wall -pipe -fno-exceptions -fno-rtti) elseif(MSVC)