|
@@ -31,13 +31,17 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
|
31
|
31
|
#################################################################
|
32
|
32
|
|
33
|
33
|
# Build warnings
|
34
|
|
-set (WARNINGS "${WARNINGS} -Weverything -Wno-padded -Wno-packed")
|
35
|
|
-set (WARNINGS "${WARNINGS} -Wno-global-constructors -Wno-exit-time-destructors")
|
36
|
|
-set (WARNINGS "${WARNINGS} -Wno-documentation-unknown-command -Wno-c++98-compat-pedantic")
|
37
|
|
-set (WARNINGS "${WARNINGS} -Wno-missing-prototypes -Wno-missing-variable-declarations")
|
38
|
|
-set (WARNINGS "${WARNINGS} -Wno-disabled-macro-expansion")
|
39
|
|
-
|
40
|
|
-set (WARNINGS "${WARNINGS} -Wno-shorten-64-to-32 -Wno-sign-conversion")
|
|
34
|
+if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
|
35
|
+ set (WARNINGS "${WARNINGS} -Weverything -Wno-padded -Wno-packed")
|
|
36
|
+ set (WARNINGS "${WARNINGS} -Wno-global-constructors -Wno-exit-time-destructors")
|
|
37
|
+ set (WARNINGS "${WARNINGS} -Wno-documentation-unknown-command -Wno-c++98-compat-pedantic")
|
|
38
|
+ set (WARNINGS "${WARNINGS} -Wno-missing-prototypes -Wno-missing-variable-declarations")
|
|
39
|
+ set (WARNINGS "${WARNINGS} -Wno-disabled-macro-expansion")
|
|
40
|
+
|
|
41
|
+ set (WARNINGS "${WARNINGS} -Wno-shorten-64-to-32 -Wno-sign-conversion")
|
|
42
|
+else()
|
|
43
|
+ set (WARNINGS "${WARNINGS} -Wall -Wextra -Wpedantic")
|
|
44
|
+endif()
|
41
|
45
|
|
42
|
46
|
# Flags for all builds
|
43
|
47
|
set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} -std=c++11 ${WARNINGS}")
|