[cmake,tests] for non-RPATH builds, tests need LD_LIBRARY_PATH
@@ -515,8 +515,12 @@ function(build_python_tests)
configure_file(${file} ${SICONOS_SWIG_ROOT_DIR}/tests COPYONLY)
set(name "python_${testname}")
set(exename ${SICONOS_SWIG_ROOT_DIR}/tests/${exename})
- # set_ldlibpath()
+ set_ldlibpath()
add_python_test(${name} ${exename})
endforeach()
endif()
endfunction()
+
+if(WITH_TESTING)
+ set_ldlibpath()
+endif()
