Commit d1280d0b authored by Marc Vef's avatar Marc Vef
Browse files

Merge branch 'cmake_gnucc' into 'master'

CMake gnucc fixes

See merge request ada-fs/fs!2
parents 9ddbb809 569ef63e
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
cmake_minimum_required(VERSION 3.7)
set(CMAKE_C_COMPILER "gcc")
set(CMAKE_CXX_COMPILER "g++")
project(ifs)

if(NOT CMAKE_COMPILER_IS_GNUCC)
	message(FATAL_ERROR "The choosen C compiler is not gcc and is not supported")
endif()
if(NOT CMAKE_COMPILER_IS_GNUCXX)
	message(FATAL_ERROR "The choosen C++ compiler is not g++ and is not supported")
endif()

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (NOT CMAKE_BUILD_TYPE)
    SET(CMAKE_BUILD_TYPE Release
            CACHE STRING "Choose the type of build: Debug Release Memcheck