From 1867a97a6e8e9cbccaf5b6fe83b4749f16c6856f Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 10 Dec 2014 09:37:33 +0000
Subject: [PATCH] fix contrib/onelab test

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b034147902..d9531f46f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -557,7 +557,7 @@ endif(ENABLE_ONELAB2)
 
 if(ENABLE_ONELAB)
   set_config_option(HAVE_ONELAB "ONELAB")
-  if(EXISTS contrib/onelab)
+  if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab)
     if(ENABLE_ONELAB_METAMODEL)
       add_subdirectory(contrib/onelab)
       include_directories(contrib/onelab)
@@ -565,7 +565,7 @@ if(ENABLE_ONELAB)
     endif(ENABLE_ONELAB_METAMODEL)
     file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab/python/onelab.py
               DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-  endif(EXISTS contrib/onelab)
+  endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab)
 endif(ENABLE_ONELAB)
 
 if(ENABLE_BUILD_IOS)
-- 
GitLab