Skip to content

Commit 425561d

Browse files
committed
bugfix when ispc not installed
1 parent 15e7437 commit 425561d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/cmake/ispc.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ MACRO (INCLUDE_DIRECTORIES_ISPC)
2020
ENDMACRO ()
2121

2222
execute_process(COMMAND which ispc OUTPUT_VARIABLE ISPC_EXECUTABLE)
23-
execute_process(COMMAND dirname ${ISPC_EXECUTABLE} OUTPUT_VARIABLE ISPC_DIR_TEMP)
23+
IF (EXISTS ${ISPC_EXECUTABLE})
24+
execute_process(COMMAND dirname ${ISPC_EXECUTABLE} OUTPUT_VARIABLE ISPC_DIR_TEMP)
25+
ENDIF()
2426
STRING(REGEX REPLACE "\n" "" ISPC_DIR "${ISPC_DIR_TEMP}")
2527

2628
MACRO (ispc_compile targets)

0 commit comments

Comments
 (0)