Fixed cmake errors
This commit is contained in:
parent
74b3920eef
commit
f30ce402c1
@ -54,9 +54,9 @@ if("${FORT_COMPILER}" STREQUAL "MSVC")
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W4")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W4")
|
||||||
else()
|
else()
|
||||||
set(ADDITIONAL_WARNINGS "\
|
set(ADDITIONAL_WARNINGS "\
|
||||||
-Wall
|
-Wall \
|
||||||
-Wextra
|
-Wextra \
|
||||||
-Werror
|
-Werror \
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wformat=2 \
|
-Wformat=2 \
|
||||||
@ -69,7 +69,7 @@ else()
|
|||||||
")
|
")
|
||||||
if("${FORT_COMPILER}" STREQUAL "GNU")
|
if("${FORT_COMPILER}" STREQUAL "GNU")
|
||||||
set(ADDITIONAL_WARNINGS "${ADDITIONAL_WARNINGS} \
|
set(ADDITIONAL_WARNINGS "${ADDITIONAL_WARNINGS} \
|
||||||
-Wtrampolines
|
-Wtrampolines \
|
||||||
-Wlogical-op")
|
-Wlogical-op")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user