projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
504b5c4
)
Useful warnings for gcc added
author
Eugeny Kalishenko
<ydginster@gmail.com>
Sun, 20 Dec 2015 11:41:18 +0000
(14:41 +0300)
committer
kel
<ydginster@gmail.com>
Sun, 20 Dec 2015 11:46:16 +0000
(14:46 +0300)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 1e062440ba728fe141864a2e1033706bd353380d..320d486e90dd90bd499388e06dceef0eeefb9115 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-48,8
+48,9
@@
endif()
message("Build type -- ${CMAKE_BUILD_TYPE}")
-if(UNIX)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+if(CMAKE_COMPILER_IS_GNUCXX)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -pedantic -fno-strict-aliasing")
endif()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")