From: Matthias Maier Date: Tue, 3 May 2016 22:09:58 +0000 (-0500) Subject: Revert "Merge pull request #2543 from tamiko/cmake_support_target_interface" X-Git-Tag: v8.5.0-rc1~1056^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c28956e3110d5d8f5498ce055a5f60d2fcc744c3;p=dealii.git Revert "Merge pull request #2543 from tamiko/cmake_support_target_interface" This reverts commit 0a2e3810e2588fc49ee56dae410513dee094f687, reversing changes made to 44221ed46559bb87ab3fc36b4fa226de7e80731f. --- diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 5a575fc65a..b7bb5014b0 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -81,49 +81,6 @@ FOREACH(build ${DEAL_II_BUILD_TYPES}) RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}" ) - IF("${CMAKE_VERSION}" VERSION_GREATER "3.0") - # - # Populate the full target interface variables for newer cmake - # versions: - # - - SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} - PROPERTY INTERFACE_INCLUDE_DIRECTORIES - $ - $ - # cmake correctly calculates an install prefix relative to - # ${DEAL_II_PROJECT_CONFIG_RELDIR}! - $ - ) - IF(NOT "${DEAL_II_BUNDLED_INCLUDE_DIRS}" STREQUAL "") - SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} - APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES - $ - $ - ) - ENDIF() - SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} - APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES - ${DEAL_II_USER_INCLUDE_DIRS} - ) - - SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} - PROPERTY INTERFACE_COMPILE_DEFINITIONS - ${DEAL_II_DEFINITIONS} - ${DEAL_II_DEFINITIONS_${build}} - ) - - - # FIXME: There is no INTERFACE_LINK_FLAGS yet... *sigh* - - SET(_flags "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${build}}") - SET(_flags "${_flags} ${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${build}}") - SEPARATE_ARGUMENTS(_flags) - SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} - PROPERTY INTERFACE_COMPILE_OPTIONS ${_flags} - ) - ENDIF() - IF(CMAKE_SYSTEM_NAME MATCHES "Darwin") SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} PROPERTIES