Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4755276f authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

M: fix string REPLACE also for cases -Werror=... for specific warnings

parent a661fe7f
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,10 @@
include(FindPackageHandleStandardArgs)
# tests used in this script is not compliant with -Werror
# tests used in this script is not compliant with -Werror or -Werror=...
# remove it temporarily from C flags
set(CMAKE_C_FLAGS_COPY "${CMAKE_C_FLAGS}" CACHE STRING "" FORCE)
string(REPLACE "-Werror" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS_COPY}")
string(REGEX REPLACE "-Werror[^ ]*" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
# check if we can call math directly without linking explicitly to libm
include(CheckFunctionExists)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment