Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix out of tree builds
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 27 Dec 2018 19:42:38 +0000 (20:42 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 27 Dec 2018 19:42:38 +0000 (20:42 +0100)
examples/python/CMakeLists.txt

index 0112160..4f1bd5e 100644 (file)
@@ -3,7 +3,7 @@ foreach(example exec-basic)
   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
 
   if(enable_python)
-    ADD_TESH(python-${example} --setenv srcdir=${example}
+    ADD_TESH(python-${example} --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
                               --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
                               --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib