FOREACH (_inst_in_file ${_inst_in_files})
STRING(REGEX REPLACE "\\.in$" "" _inst_file "${_inst_in_file}" )
- SET(_dependency)
- IF(TARGET expand_instantiations)
- SET(_dependency expand_instantiations)
+ IF(NOT CMAKE_CROSSCOMPILING)
+ SET(_command expand_instantiations_exe)
+ SET(_dependency expand_instantiations_exe)
+ ELSE()
+ SET(_command expand_instantiations)
+ SET(_dependency)
ENDIF()
ADD_CUSTOM_COMMAND(
DEPENDS ${_dependency}
${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/template-arguments
${CMAKE_CURRENT_SOURCE_DIR}/${_inst_in_file}
- COMMAND expand_instantiations
+ COMMAND ${_command}
ARGS ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/template-arguments
< ${CMAKE_CURRENT_SOURCE_DIR}/${_inst_in_file}
> ${CMAKE_CURRENT_BINARY_DIR}/${_inst_file}
##
## ---------------------------------------------------------------------
-IF(NOT CMAKE_CROSSCOMPILING)
- ADD_EXECUTABLE(expand_instantiations expand_instantiations.cc)
-
- IF(DEAL_II_COMPONENT_COMPAT_FILES)
- SET_TARGET_PROPERTIES(expand_instantiations
- PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/scripts
- )
- INSTALL(TARGETS expand_instantiations
- DESTINATION ${DEAL_II_COMMON_RELDIR}/scripts
- COMPONENT compat_files
- )
- ENDIF()
-ENDIF()
+ADD_EXECUTABLE(expand_instantiations_exe expand_instantiations.cc)
+SET_TARGET_PROPERTIES(expand_instantiations_exe
+ PROPERTIES OUTPUT_NAME expand_instantiations
+ )
IF(DEAL_II_COMPONENT_COMPAT_FILES)
+
#
# Build and install the old dependency_resolution and report_features
# executables:
)
ENDIF()
+ IF(NOT CMAKE_CROSSCOMPILING)
+ ADD_CUSTOM_TARGET(run_report_features COMMAND report_features)
+ ENDIF()
+
ADD_DEPENDENCIES(compat_files
- expand_instantiations
+ expand_instantiations_exe
make_dependencies
report_features
)
- IF(NOT CMAKE_CROSSCOMPILING)
- ADD_CUSTOM_TARGET(run_report_features COMMAND report_features)
- ENDIF()
-
- SET_TARGET_PROPERTIES(make_dependencies report_features
+ SET_TARGET_PROPERTIES(expand_instantiations_exe make_dependencies report_features
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/scripts
)
-
- INSTALL(TARGETS make_dependencies report_features
+ INSTALL(TARGETS expand_instantiations_exe make_dependencies report_features
DESTINATION ${DEAL_II_COMMON_RELDIR}/scripts
COMPONENT compat_files
)