Mentions légales du service

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

M: module not compliant with -Werror, remove it temporarily.

parent 02239748
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,11 @@
include(FindPackageHandleStandardArgs)
# tests used in this script is not compliant with -Werror
# remove it temporarily from C flags
set( CMAKE_C_FLAGS_COPY "${CMAKE_C_FLAGS}" CACHE STRING "" )
string(REPLACE "-Werror" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS_COPY})
# check if we can call math directly without linking explicitly to libm
include(CheckFunctionExists)
check_function_exists(sqrt HAVE_MATH)
......@@ -74,3 +79,5 @@ else()
endif()
endif()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS_COPY}" CACHE STRING "" FORCE)
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