Skip to content

Commit

Permalink
bugfix when ispc not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwoop committed Jun 12, 2014
1 parent 15e7437 commit 425561d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/cmake/ispc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ MACRO (INCLUDE_DIRECTORIES_ISPC)
ENDMACRO ()

execute_process(COMMAND which ispc OUTPUT_VARIABLE ISPC_EXECUTABLE)
execute_process(COMMAND dirname ${ISPC_EXECUTABLE} OUTPUT_VARIABLE ISPC_DIR_TEMP)
IF (EXISTS ${ISPC_EXECUTABLE})
execute_process(COMMAND dirname ${ISPC_EXECUTABLE} OUTPUT_VARIABLE ISPC_DIR_TEMP)
ENDIF()
STRING(REGEX REPLACE "\n" "" ISPC_DIR "${ISPC_DIR_TEMP}")

MACRO (ispc_compile targets)
Expand Down

0 comments on commit 425561d

Please sign in to comment.