##// END OF EJS Templates
AJout de script helper pour démarrer les consoles (cmd, git-bash) avec le bon environnements dans windows
AJout de script helper pour démarrer les consoles (cmd, git-bash) avec le bon environnements dans windows

File last commit:

r0:5cbbc595e8f3
r13:6b14eae689f0
Show More
compiler_gnu.cmake
18 lines | 732 B | text/x-cmake | CMakeLexer
#
# 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()