Python CMake: change RESINSIGHT_GRPC_PYTHON_EXECUTABLE to be FILEPATH instead of PATH

This commit is contained in:
Gaute Lindkvist committed 2019-08-14 09:23:14 +02:00
1 parent 197279ccbf
commit 7afeae144a
1 file changed
+1 -1
+1 -1
View File
@@ -549,7 +549,7 @@ endforeach()
# Copy all grpc libraries and python files
if (RESINSIGHT_ENABLE_GRPC)
set(RESINSIGHT_GRPC_PYTHON_EXECUTABLE "" CACHE PATH "gRPC : Path to Python 3 executable, required to build the Python client library")
set(RESINSIGHT_GRPC_PYTHON_EXECUTABLE "" CACHE FILEPATH "gRPC : Path to Python 3 executable, required to build the Python client library")
if (RESINSIGHT_GRPC_PYTHON_EXECUTABLE)
if (EXISTS ${RESINSIGHT_GRPC_PYTHON_EXECUTABLE})
add_custom_target(GeneratedPythonSources DEPENDS ${GRPC_GENERATED_PYTHON_SOURCES})