From a813efdf1f499e43aac854f4701249eb9754a276 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 4 Nov 2014 12:13:50 +0000 Subject: [PATCH] --- CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d1d7b8274..bb57c0ff0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -556,13 +556,15 @@ endif(ENABLE_ONELAB2) if(ENABLE_ONELAB) set_config_option(HAVE_ONELAB "ONELAB") - if(ENABLE_ONELAB_METAMODEL) - add_subdirectory(contrib/onelab) - include_directories(contrib/onelab) - set_config_option(HAVE_ONELAB_METAMODEL "ONELABMetamodel") - endif(ENABLE_ONELAB_METAMODEL) - file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab/python/onelab.py - DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + if(EXISTS contrib/onelab) + if(ENABLE_ONELAB_METAMODEL) + add_subdirectory(contrib/onelab) + include_directories(contrib/onelab) + set_config_option(HAVE_ONELAB_METAMODEL "ONELABMetamodel") + 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(ENABLE_ONELAB) if(ENABLE_BUILD_IOS) -- GitLab