Fix FindCuda cmake file.
This commit is contained in:
parent
b3ed4f8e04
commit
7f2d5d6c1a
@ -91,6 +91,8 @@ MACRO (GET_CUFILE_DEPENDENCIES dependencies file)
|
|||||||
|
|
||||||
# parse file for dependencies
|
# parse file for dependencies
|
||||||
FILE(READ "${file}" CONTENTS)
|
FILE(READ "${file}" CONTENTS)
|
||||||
|
#STRING(REGEX MATCHALL "#[ \t]*include[ \t]+[<\"][^>\"]*" DEPS "${CONTENTS}")
|
||||||
|
STRING(REGEX MATCHALL "#[ \t]*include[ \t]+\"[^\"]*" DEPS "${CONTENTS}")
|
||||||
|
|
||||||
SET(${dependencies})
|
SET(${dependencies})
|
||||||
|
|
||||||
@ -101,12 +103,10 @@ MACRO (GET_CUFILE_DEPENDENCIES dependencies file)
|
|||||||
${filepath})
|
${filepath})
|
||||||
|
|
||||||
IF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
|
IF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
|
||||||
MESSAGE("${filepath} ${PATH_OF_${DEP}}/${DEP}")
|
#MESSAGE("${file} : ${PATH_OF_${DEP}}/${DEP}")
|
||||||
SET(${dependencies} ${${dependencies}} ${PATH_OF_${DEP}}/${DEP})
|
SET(${dependencies} ${${dependencies}} ${PATH_OF_${DEP}}/${DEP})
|
||||||
ENDIF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
|
ENDIF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
|
||||||
|
|
||||||
# reset path.
|
|
||||||
#SET(PATH_OF_${DEP})
|
|
||||||
ENDFOREACH(DEP)
|
ENDFOREACH(DEP)
|
||||||
|
|
||||||
ENDMACRO (GET_CUFILE_DEPENDENCIES)
|
ENDMACRO (GET_CUFILE_DEPENDENCIES)
|
||||||
|
Loading…
Reference in New Issue
Block a user