FOREACH(_build ${DEAL_II_BUILD_TYPES})
STRING(TOLOWER ${_build} _build_lowercase)
- ADD_LIBRARY(${_library}.${_build_lowercase}
+ ADD_LIBRARY(${_library}_${_build_lowercase}
${ARGN}
)
${DEAL_II_DEFINITIONS_${_build}}
)
- SET_TARGET_PROPERTIES(${_library}.${_build_lowercase} PROPERTIES
+ SET_TARGET_PROPERTIES(${_library}_${_build_lowercase} PROPERTIES
LINK_FLAGS "${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"
COMPILE_DEFINITIONS "${_definitions}"
COMPILE_FLAGS "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}"
)
SET_PROPERTY(GLOBAL APPEND PROPERTY DEAL_II_OBJECTS_${_build}
- "$<TARGET_OBJECTS:${_library}.${_build_lowercase}>"
+ "$<TARGET_OBJECTS:${_library}_${_build_lowercase}>"
)
#
# Cuda specific target setup:
#
IF(DEAL_II_WITH_CUDA)
- CUDA_WRAP_SRCS(${_library}.${_build_lowercase}
+ CUDA_WRAP_SRCS(${_library}_${_build_lowercase}
OBJ _generated_cuda_files ${ARGN} SHARED
)
- ADD_CUSTOM_TARGET(${_library}.${_build_lowercase}_cuda
+ ADD_CUSTOM_TARGET(${_library}_${_build_lowercase}_cuda
DEPENDS
${_generated_cuda_files}
)
- ADD_DEPENDENCIES(${_library}.${_build_lowercase}
- ${_library}.${_build_lowercase}_cuda
+ ADD_DEPENDENCIES(${_library}_${_build_lowercase}
+ ${_library}_${_build_lowercase}_cuda
)
SET_PROPERTY(GLOBAL APPEND PROPERTY DEAL_II_OBJECTS_${_build}
#
# target
#
-# where target.${build_type} (and if present) target.${build_type}_cuda
+# 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.
#
# Define a custom target that depends on the generation of all inst.in
# files.
#
- ADD_CUSTOM_TARGET(${_target}.inst ALL DEPENDS ${_inst_targets})
+ ADD_CUSTOM_TARGET(${_target}_inst ALL DEPENDS ${_inst_targets})
#
# Add a dependency to all target.${build_type} so that target.inst is
FOREACH(_build ${DEAL_II_BUILD_TYPES})
STRING(TOLOWER ${_build} _build_lowercase)
- ADD_DEPENDENCIES(${_target}.${_build_lowercase} ${_target}.inst)
+ ADD_DEPENDENCIES(${_target}_${_build_lowercase} ${_target}_inst)
- IF(TARGET ${_target}.${_build_lowercase}_cuda)
- ADD_DEPENDENCIES(${_target}.${_build_lowercase}_cuda ${_target}.inst)
+ IF(TARGET ${_target}_${_build_lowercase}_cuda)
+ ADD_DEPENDENCIES(${_target}_${_build_lowercase}_cuda ${_target}_inst)
ENDIF()
+
ENDFOREACH()
ENDMACRO()