diff options
Diffstat (limited to 'Modules/Platform/gcc.cmake')
-rw-r--r-- | Modules/Platform/gcc.cmake | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Modules/Platform/gcc.cmake b/Modules/Platform/gcc.cmake index 62b3c2e..54ad33a 100644 --- a/Modules/Platform/gcc.cmake +++ b/Modules/Platform/gcc.cmake @@ -1,6 +1,8 @@ -SET (CMAKE_CXX_FLAGS "") -SET (CMAKE_CXX_FLAGS_DEBUG "-g") -SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3") -SET (CMAKE_CXX_FLAGS_RELEASE "-O2") -SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") -SET (CMAKE_C_FLAGS "") +IF(NOT CMAKE_CXX_FLAGS) + SET (CMAKE_CXX_FLAGS "") + SET (CMAKE_CXX_FLAGS_DEBUG "-g") + SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O3") + SET (CMAKE_CXX_FLAGS_RELEASE "-O2") + SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + SET (CMAKE_C_FLAGS "") +ENDIF(NOT CMAKE_CXX_FLAGS) |