Skip to content
Snippets Groups Projects
Commit 6db22c4a authored by Jerome Hue's avatar Jerome Hue
Browse files

Enable Math Constants and Use cmath Header

parent 3a44ecdc
No related branches found
No related tags found
1 merge request!146Implement a backward for Heaviside
Pipeline #68021 failed
...@@ -86,6 +86,9 @@ target_link_libraries(${module_name} ...@@ -86,6 +86,9 @@ target_link_libraries(${module_name}
_aidge_core # _ is added because we link the exported target and not the project _aidge_core # _ is added because we link the exported target and not the project
) )
# Add definition _USE_MATH_DEFINES to enable math constant definitions from math.h/cmath.
target_compile_definitions(${module_name} PRIVATE _USE_MATH_DEFINES)
#Set target properties #Set target properties
set_property(TARGET ${module_name} PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET ${module_name} PROPERTY POSITION_INDEPENDENT_CODE ON)
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "aidge/utils/Registrar.hpp" #include "aidge/utils/Registrar.hpp"
#include <cstddef> // std::size_t #include <cstddef> // std::size_t
#include <math.h> #include <cmath>
#include "aidge/backend/cpu/operator/HeavisideImpl.hpp" #include "aidge/backend/cpu/operator/HeavisideImpl.hpp"
#include "aidge/utils/ErrorHandling.hpp" #include "aidge/utils/ErrorHandling.hpp"
......
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