Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HexEx
libHexEx
Commits
7650ecaa
Commit
7650ecaa
authored
Jul 23, 2019
by
Max Lyon
Browse files
even fewer warnings with clang
parent
2310aeab
Pipeline
#11538
failed with stage
in 2 minutes and 45 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
7650ecaa
...
...
@@ -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"
)
...
...
demo/cmdline_tool/CMakeLists.txt
View file @
7650ecaa
...
...
@@ -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
()
...
...
demo/minimum_example/CMakeLists.txt
View file @
7650ecaa
...
...
@@ -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
()
...
...
tests/CMakeLists.txt
View file @
7650ecaa
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment