SET(deal_ii_used_flags
CMAKE_C_FLAGS
CMAKE_CXX_FLAGS
- DEAL_II_C_FLAGS_RELEASE
- DEAL_II_CXX_FLAGS_RELEASE
+ CMAKE_SHARED_LINKER_FLAGS
DEAL_II_C_FLAGS_DEBUG
DEAL_II_CXX_FLAGS_DEBUG
+ DEAL_II_SHARED_LINKER_FLAGS_DEBUG
+ DEAL_II_C_FLAGS_RELEASE
+ DEAL_II_CXX_FLAGS_RELEASE
+ DEAL_II_SHARED_LINKER_FLAGS_RELEASE
)
FOREACH(flag ${deal_ii_used_flags})
#
# Strip leading and trailing whitespace:
#
- STRING(STRIP "${flags}" flags)
+ # STRING(STRIP "${flags}" flags)
+ STRING(STRIP "${${flags}}" ${flags})
ENDFOREACH()
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
MESSAGE(" DEAL_II_CXX_FLAGS_DEBUG: ${DEAL_II_CXX_FLAGS_DEBUG}")
ENDIF()
-MESSAGE(" CMAKE_SHARED_LINKER_FLAGS: ${CMAKE_SHARED_LINKER_FLAGS}")
+MESSAGE(" CMAKE_SHARED_LINKER_FLAGS: ${CMAKE_SHARED_LINKER_FLAGS}")
IF(CMAKE_BUILD_TYPE MATCHES "Release")
MESSAGE(" DEAL_II_SHARED_LINKER_FLAGS_RELEASE: ${DEAL_II_SHARED_LINKER_FLAGS_RELEASE}")
ENDIF()
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams