--- src/liboslexec/CMakeLists.txt.orig 2020-09-05 23:50:56 UTC +++ src/liboslexec/CMakeLists.txt @@ -113,7 +113,7 @@ macro ( LLVM_COMPILE llvm_src srclist ) -Wno-deprecated-register -O3 -fno-math-errno -S -emit-llvm -o ${llvm_asm} ${llvm_src} COMMAND "${LLVM_DIRECTORY}/bin/llvm-as" -f -o ${llvm_bc} ${llvm_asm} - COMMAND python "${CMAKE_CURRENT_SOURCE_DIR}/serialize-bc.py" ${llvm_bc} ${llvm_bc_cpp} "osl_llvm_compiled_ops" + COMMAND %%PYCMD%% "${CMAKE_CURRENT_SOURCE_DIR}/serialize-bc.py" ${llvm_bc} ${llvm_bc_cpp} "osl_llvm_compiled_ops" MAIN_DEPENDENCY ${llvm_src} DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/serialize-bc.py" ${exec_headers} ${PROJECT_PUBLIC_HEADERS} @@ -151,7 +151,7 @@ macro ( CUDA_SHADEOPS_COMPILE srclist ) # Serialize the linked bitcode into a CPP file and add it to the list of liboslexec soures add_custom_command ( OUTPUT ${shadeops_bc_cuda_cpp} - COMMAND python "${CMAKE_CURRENT_SOURCE_DIR}/serialize-bc.py" + COMMAND %%PYCMD%% "${CMAKE_CURRENT_SOURCE_DIR}/serialize-bc.py" ${linked_shadeops_bc} ${shadeops_bc_cuda_cpp} "osl_llvm_compiled_ops_cuda" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/serialize-bc.py" ${linked_shadeops_bc} ${exec_headers} ${PROJECT_PUBLIC_HEADERS}