LLNL / spheral

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove CMake code once Axom and BLT are updated

ldowen opened this issue · comments

commented

The code CMake code for bringing in Axom should be unnecessary in future updates. Specifically:

foreach(_comp ${AXOM_COMPONENTS_ENABLED})
list(APPEND SPHERAL_BLT_DEPENDS axom::${_comp})
get_target_property(axom_deps axom::${_comp} INTERFACE_LINK_LIBRARIES)
list(APPEND SPHERAL_BLT_DEPENDS ${axom_deps})
endforeach()

and

set(_props)
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.13.0" )
list(APPEND _props INTERFACE_LINK_OPTIONS)
endif()
list(APPEND _props INTERFACE_COMPILE_OPTIONS)
foreach(_target axom axom::openmp)
if(TARGET ${_target})
message(STATUS "Removing OpenMP Flags from target[${_target}]")
foreach(_prop ${_props})
get_target_property(_flags ${_target} ${_prop})
if ( _flags )
string( REPLACE "${OpenMP_CXX_FLAGS}" ""
correct_flags "${_flags}" )
string( REPLACE "${OpenMP_Fortran_FLAGS}" ""
correct_flags "${correct_flags}" )
set_target_properties( ${_target} PROPERTIES ${_prop} "${correct_flags}" )
endif()
endforeach()
endif()
endforeach()