##// END OF EJS Templates
Inclusion de core dans app commenté pour éviter un warning cmake. Sera remis au norme lors des implémentation
Inclusion de core dans app commenté pour éviter un warning cmake. Sera remis au norme lors des implémentation

File last commit:

r0:5cbbc595e8f3
r12:173cd0fbc359
Show More
compiler_gnu.cmake
18 lines | 732 B | text/x-cmake | CMakeLexer
Initialisation de l'archi cmake
r0 #
# compiler_gnu.cmake : specific configuration for GNU compilers
#
# Set the flag -Wall to activate all warnings
IF (${CMAKE_BUILD_TYPE} STREQUAL Debug)
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -std=c++14")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_DEBUG}")
ELSE()
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -O2 -std=c++14")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -O2")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_RELEASE}")
ENDIF()