forked from Mirrorlandia_minetest/irrlicht
Skip unnecessary C compiler checks
This commit is contained in:
parent
279530a230
commit
3fb23fc423
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user