SET(_type "STATIC")
ENDIF()
- SET(_reldir "\${DEAL_II_LIBRARY_RELDIR}")
-
+ SET(_name "${CMAKE_${_type}_LIBRARY_PREFIX}${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX}${CMAKE_${_type}_LIBRARY_SUFFIX}")
SET(CONFIG_LIBRARIES_${_build}
- "\${DEAL_II_PATH}/${_reldir}/${CMAKE_${_type}_LIBRARY_PREFIX}${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX}${CMAKE_${_type}_LIBRARY_SUFFIX}"
+ "\${DEAL_II_PATH}/${DEAL_II_LIBRARY_RELDIR}/${_name}"
${DEAL_II_LIBRARIES_${_build}}
${DEAL_II_LIBRARIES}
)
)
SET(_makefiles
${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/Make.global_options
- ${CMAKE_CURRENT_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/Make.global_options
+ ${CMAKE_CURRENT_BINARY_DIR}/Make.global_options
)
FOREACH(_file ${_files} ${_makefiles})
FILE(APPEND ${_file} "\n\n#\n# Feature configuration:\n#\n\n")
GET_CMAKE_PROPERTY(res VARIABLES)
FOREACH(var ${res})
IF(var MATCHES "DEAL_II_WITH")
+ STRING(REPLACE "DEAL_II_WITH_" "" _name ${var})
+
FOREACH(_file ${_files})
FILE(APPEND ${_file} "SET(${var} ${${var}})\n")
+ IF(${var} AND NOT "${${_name}_VERSION}" STREQUAL "")
+ FILE(APPEND ${_file}
+ "SET(DEAL_II_${_name}_VERSION \"${${_name}_VERSION}\")\n"
+ )
+ ENDIF()
ENDFOREACH()
+
FOREACH(_file ${_makefiles})
IF(${var})
FILE(APPEND ${_file} "${var} = true\n")
+ IF(NOT "${${_name}_VERSION}" STREQUAL "")
+ FILE(APPEND ${_file}
+ "DEAL_II_${_name}_VERSION = ${${_name}_VERSION}\n"
+ )
+ ENDIF()
ELSE()
FILE(APPEND ${_file} "${var} = false\n")
ENDIF()