mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-20 20:12:26 +02:00
Set proper flags for the verbose mode (debug flags)
This commit is contained in:
parent
99a620f9a1
commit
3386ad49c4
|
@ -70,7 +70,12 @@ if(MSVC)
|
||||||
set(FLAGS "/Ox")
|
set(FLAGS "/Ox")
|
||||||
set(FLAGS "${FLAGS} /wd4715")
|
set(FLAGS "${FLAGS} /wd4715")
|
||||||
else()
|
else()
|
||||||
set(FLAGS "-O3 -std=c++11")
|
set(FLAGS "-std=c++11")
|
||||||
|
if(VERBOSE)
|
||||||
|
set(FLAGS "${FLAGS} -O1 -g")
|
||||||
|
else()
|
||||||
|
set(FLAGS "${FLAGS} -O3")
|
||||||
|
endif()
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
||||||
set(FLAGS "${FLAGS} -Wall -Wno-comment -Wno-return-type -Wno-switch -Wno-missing-noreturn")
|
set(FLAGS "${FLAGS} -Wall -Wno-comment -Wno-return-type -Wno-switch -Wno-missing-noreturn")
|
||||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0)
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.0)
|
||||||
|
|
Loading…
Reference in a new issue