mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-18 13:43:48 +01:00
Skip unnecessary C compiler checks
This commit is contained in:
parent
279530a230
commit
3fb23fc423
@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
project(Irrlicht)
|
project(Irrlicht CXX)
|
||||||
|
|
||||||
set(IRRLICHT_VERSION_MAJOR 1)
|
set(IRRLICHT_VERSION_MAJOR 1)
|
||||||
set(IRRLICHT_VERSION_MINOR 9)
|
set(IRRLICHT_VERSION_MINOR 9)
|
||||||
|
@ -12,9 +12,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
|||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
||||||
set(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
|
||||||
|
|
||||||
add_compile_options(-Wall -pipe -fno-exceptions -fno-rtti)
|
add_compile_options(-Wall -pipe -fno-exceptions -fno-rtti)
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
|
Loading…
Reference in New Issue
Block a user