Commit 7650ecaa authored by Max Lyon's avatar Max Lyon

even fewer warnings with clang

parent 2310aeab
Pipeline #11538 failed with stage
in 2 minutes and 45 seconds
......@@ -74,7 +74,7 @@ target_link_libraries (HexExStatic ${LIBRARIES})
#
set (HEXEX_COMPILE_FLAGS "-Wall")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set (HEXEX_COMPILE_FLAGS "${HEXEX_COMPILE_FLAGS} -msse -mfpmath=sse -Weverything" )
set (HEXEX_COMPILE_FLAGS "${HEXEX_COMPILE_FLAGS} -msse -mfpmath=sse" )
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set (HEXEX_COMPILE_FLAGS "${HEXEX_COMPILE_FLAGS} -msse -mfpmath=sse -pedantic -Wextra")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
......
......@@ -52,7 +52,7 @@ target_link_libraries(cmdline_tool ${CMDLINE_TOOL_LIBRARIES})
if ( NOT WIN32 )
# Set compiler flags
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_target_properties(cmdline_tool PROPERTIES COMPILE_FLAGS "-Wall -Wno-long-long")
set_target_properties(cmdline_tool PROPERTIES COMPILE_FLAGS "-Wno-long-long")
else()
set_target_properties(cmdline_tool PROPERTIES COMPILE_FLAGS "-pedantic -Wno-long-long")
endif()
......
......@@ -52,7 +52,7 @@ target_link_libraries(minimum_example ${MINIMUM_EXAMPLE_LIBRARIES})
if ( NOT WIN32 )
# Set compiler flags
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_target_properties(minimum_example PROPERTIES COMPILE_FLAGS "-Wall -Wno-long-long")
set_target_properties(minimum_example PROPERTIES COMPILE_FLAGS "s-Wno-long-long")
else()
set_target_properties(minimum_example PROPERTIES COMPILE_FLAGS "-pedantic -Wno-long-long")
endif()
......
......@@ -58,7 +58,7 @@ if ( HEXEX_BUILD_UNIT_TESTS )
if ( NOT WIN32 )
# Set compiler flags
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_target_properties(unittests PROPERTIES COMPILE_FLAGS "-g -Wall -Wno-long-long")
set_target_properties(unittests PROPERTIES COMPILE_FLAGS "-g -Wno-long-long")
else()
set_target_properties(unittests PROPERTIES COMPILE_FLAGS "-g -pedantic -Wno-long-long")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment