From 4f0db314d031ceadd2c6560b2b1748ca56474dfc Mon Sep 17 00:00:00 2001 From: conrad Date: Thu, 1 Apr 2021 17:07:55 +1000 Subject: [PATCH] compile time warning about unsupported option --- include/armadillo_bits/config.hpp | 5 +++++ include/armadillo_bits/config.hpp.cmake | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/armadillo_bits/config.hpp b/include/armadillo_bits/config.hpp index 1aa3b6b5..e9a65053 100644 --- a/include/armadillo_bits/config.hpp +++ b/include/armadillo_bits/config.hpp @@ -314,3 +314,8 @@ // Do not use these unless you know what you are doing. #define ARMA_AUX_LIBS #define ARMA_AUX_INCDIRS + + +#if defined(ARMA_WARN_LEVEL) + #pragma message ("WARNING: the ARMA_WARN_LEVEL option is not supported in this version of Armadillo") +#endif diff --git a/include/armadillo_bits/config.hpp.cmake b/include/armadillo_bits/config.hpp.cmake index 5def8a7a..b44ca813 100644 --- a/include/armadillo_bits/config.hpp.cmake +++ b/include/armadillo_bits/config.hpp.cmake @@ -314,3 +314,8 @@ // Do not use these unless you know what you are doing. #define ARMA_AUX_LIBS ${ARMA_LIBS} #define ARMA_AUX_INCDIRS ${CMAKE_REQUIRED_INCLUDES} + + +#if defined(ARMA_WARN_LEVEL) + #pragma message ("WARNING: the ARMA_WARN_LEVEL option is not supported in this version of Armadillo") +#endif