diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 73431a8a..1bad547b 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -46,7 +46,7 @@ if(NOT VIENNALS_SYSTEM_VTK) message(STATUS "[ViennaLS] Setting VTK_DIR to previously created environment") # We set `VTK_DIR` to the previously setup environment to ensure that the python script can find # the library files - set(VTK_DIR "${PROJECT_BINARY_DIR}/vtk_env") + set(VTK_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}") endif() # --------------------------------------------------------------------------------------------------------