diff --git a/unsupported/test/CMakeLists.txt b/unsupported/test/CMakeLists.txt index 3f7211777..c8ccae4f4 100644 --- a/unsupported/test/CMakeLists.txt +++ b/unsupported/test/CMakeLists.txt @@ -17,7 +17,12 @@ ei_add_test(BVH) ei_add_test(matrixExponential) ei_add_test(alignedvector3) ei_add_test(FFT) -ei_add_test(nesting_profiling) + +if(CMAKE_COMPILER_IS_GNUCXX) + ei_add_test(nesting_profiling "" "-lrt") +else() + ei_add_test(nesting_profiling) +endif() find_package(FFTW) if(FFTW_FOUND) diff --git a/unsupported/test/nesting_profiling.cpp b/unsupported/test/nesting_profiling.cpp index c0803bd46..f1fa97386 100644 --- a/unsupported/test/nesting_profiling.cpp +++ b/unsupported/test/nesting_profiling.cpp @@ -30,7 +30,7 @@ #include "Eigen/Array" #include "Eigen/Geometry" -#include "Bench/BenchTimer.h" +#include "bench/BenchTimer.h" using namespace Eigen;