From 3279e3934013d28b3870dd861eb64aec241a38b7 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 2 Dec 2009 10:03:16 -0500 Subject: [PATCH] * fix include for case-sensitive filesystem * on GNU, clock_gettime requires linking -lrt --- unsupported/test/CMakeLists.txt | 7 ++++++- unsupported/test/nesting_profiling.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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;