"${CMAKE_INSTALL_PREFIX}/${DEAL_II_INCLUDE_RELDIR}"
)
-
#
-# The library name:
+# A lot of magic to guess the resulting library names:
#
IF(BUILD_SHARED_LIBS)
SET(DEAL_II_LIBRARY_NAME_DEBUG ${CMAKE_STATIC_LIBRARY_PREFIX}${DEAL_II_BASE_NAME}${DEAL_II_DEBUG_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} )
ENDIF()
-LIST(APPEND DEAL_II_LIBRARIES_DEBUG
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_DEBUG}"
- )
-LIST(APPEND DEAL_II_LIBRARIES_RELEASE
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_RELEASE}"
- )
+IF(CMAKE_BUILD_TYPE MATCHES "Debug")
+ LIST(APPEND DEAL_II_LIBRARIES_DEBUG
+ "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_DEBUG}"
+ )
+ LIST(APPEND DEAL_II_LIBRARIES
+ DEBUG
+ "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_DEBUG}"
+ )
+ENDIF()
-LIST(APPEND DEAL_II_LIBRARIES
- DEBUG
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_DEBUG}"
- RELEASE
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_RELEASE}"
- )
+IF(CMAKE_BUILD_TYPE MATCHES "Release")
+ LIST(APPEND DEAL_II_LIBRARIES_RELEASE
+ "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_RELEASE}"
+ )
+ LIST(APPEND DEAL_II_LIBRARIES
+ RELEASE
+ "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${DEAL_II_LIBRARY_NAME_RELEASE}"
+ )
+ENDIF()