## ---------------------------------------------------------------------
##
-## Copyright (C) 2012 - 2013 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
LINKER_LANGUAGE "CXX"
)
- FILE(APPEND
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${_build_lowercase}
- "$<TARGET_OBJECTS:${_library}.${_build_lowercase}>\n"
+ SET_PROPERTY(GLOBAL APPEND PROPERTY DEAL_II_OBJECTS_${_build}
+ "$<TARGET_OBJECTS:${_library}.${_build_lowercase}>"
)
ENDFOREACH()
ENDIF()
ENDFOREACH()
-#
-# Cleanup some files used for storing the names of all object targets that
-# will be bundled to the deal.II library.
-# (Right now, i.e. cmake 2.8.8, this is the only reliable way to get
-# information into a global scope...)
-#
-FOREACH(_build ${DEAL_II_BUILD_TYPES})
- STRING(TOLOWER "${_build}" _build_lowercase)
- FILE(REMOVE
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${_build_lowercase}
- )
-ENDFOREACH()
-
#
# Cleanup deal.IITargets.cmake in the build directory:
#
## ---------------------------------------------------------------------
##
-## Copyright (C) 2012 - 2013 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
#
# Combine all ${build} OBJECT targets to a ${build} library:
#
- FILE(STRINGS
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${build_lowercase}
- deal_ii_objects_${build_lowercase}
- )
+
+ GET_PROPERTY(_objects GLOBAL PROPERTY DEAL_II_OBJECTS_${build})
ADD_LIBRARY(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
dummy.cc # Workaround for a bug in the Xcode generator
- ${deal_ii_objects_${build_lowercase}}
+ ${_objects}
)
ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX})