Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ana Ventura Barroso
Ph2_ACF
Commits
bf7d6c08
Commit
bf7d6c08
authored
Dec 10, 2020
by
Martin Delcourt
Browse files
Remove CMakeLists.txt changes
parent
686d1fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
bf7d6c08
...
...
@@ -75,16 +75,12 @@ if(NOT DEFINED ENV{OTSDAQ_CMSOUTERTRACKER_DIR})
# compiler options to avoid warnings promoted to errors
set
(
GCC_NOERROR_FLAGS
" -Wno-error=unused-result -Wno-error=deprecated-declarations"
)
set
(
GCC_4_NOERROR_FLAGS
"-Wno-error=overflow -Wno-error=unused-variable -Wno-error=unused-but-set-variable"
)
set
(
GCC_6_NOERROR_FLAGS
"-Wno-error=misleading-indentation"
)
set
(
GCC_7_NOERROR_FLAGS
"-Wno-expansion-to-defined -Wno-error=format-overflow"
)
set
(
GCC_8_NOERROR_FLAGS
"-Wno-error=catch-value -Wno-error=class-memaccess -Wno-error=format-overflow"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"GNU"
)
EXECUTE_PROCESS
(
COMMAND gcc -dumpversion OUTPUT_VARIABLE GCC_VERSION
)
if
(
GCC_VERSION VERSION_LESS 6
)
set
(
GCC_NOERROR_FLAGS
"
${
GCC_NOERROR_FLAGS
}
${
GCC_4_NOERROR_FLAGS
}
"
)
endif
()
if
(
NOT
(
GCC_VERSION VERSION_LESS 6
))
set
(
GCC_NOERROR_FLAGS
"
${
GCC_NOERROR_FLAGS
}
${
GCC_6_NOERROR_FLAGS
}
"
)
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