File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,15 @@ project(qnodeeditor)
3
3
4
4
add_definitions (-std=c++11 )
5
5
set (CMAKE_BUILD_TYPE DEBUG )
6
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic" )
7
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic" )
6
+
7
+ # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic")
8
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic" )
9
+
10
+ # add additional warnings when compiling with gcc or clang
11
+ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang" ) OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang" ))
12
+ # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
13
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra" )
14
+ endif (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang" ) OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang" ))
8
15
9
16
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
10
17
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
You can’t perform that action at this time.
0 commit comments