#
# target
#
-# where target.${build_type} will depend on the generation of all .inst
-# files, to ensure that all .inst files are generated prior to
-# compiling.
+# where target.${build_type} (and if present) target.${build_type}_cuda
+# will depend on the generation of all .inst files, to ensure that all
+# .inst files are generated prior to compiling.
#
# inst_in_files
#
< ${CMAKE_CURRENT_SOURCE_DIR}/${_inst_in_file}
> ${CMAKE_CURRENT_BINARY_DIR}/${_inst_file}.tmp
COMMAND ${CMAKE_COMMAND}
- ARGS -E rename
+ ARGS -E rename
${CMAKE_CURRENT_BINARY_DIR}/${_inst_file}.tmp
${CMAKE_CURRENT_BINARY_DIR}/${_inst_file}
)
#
FOREACH(_build ${DEAL_II_BUILD_TYPES})
STRING(TOLOWER ${_build} _build_lowercase)
+
ADD_DEPENDENCIES(${_target}.${_build_lowercase} ${_target}.inst)
+
+ IF(TARGET ${_target}.${_build_lowercase}_cuda)
+ ADD_DEPENDENCIES(${_target}.${_build_lowercase}_cuda ${_target}.inst)
+ ENDIF()
ENDFOREACH()
ENDMACRO()