From f1f59b8506e348ec3814373a3d172abee5ea31e5 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Thu, 16 Mar 2017 16:56:10 +0100
Subject: [PATCH] Only disable examples and testings if simulation mode because
 this mode does not support it

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 574141293..09c40dab2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1088,14 +1088,14 @@ if(_match_ifort)
 endif(_match_ifort)
 
 # Testing executables
-if(CHAMELEON_ENABLE_EXAMPLE)
+if(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION)
   add_subdirectory(example)
-endif(CHAMELEON_ENABLE_EXAMPLE)
+endif(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION)
 
 # Testing executables
-if(CHAMELEON_ENABLE_TESTING)
+if(CHAMELEON_ENABLE_TESTING AND NOT CHAMELEON_SIMULATION)
   add_subdirectory(testing)
-endif(CHAMELEON_ENABLE_TESTING)
+endif(CHAMELEON_ENABLE_TESTING AND NOT CHAMELEON_SIMULATION)
 
 # Timing executables
 if(CHAMELEON_ENABLE_TIMING)
-- 
GitLab