Skip to content

Commit

Permalink
Merge branch 'develop' into feature/value-view-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikeowen committed Oct 15, 2024
2 parents c9c6e61 + 5dd6f94 commit c4eb45b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitlab/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
.gcc_spectrum:
variables:
SPEC: 'gcc@$GCC_VERSION^spectrum-mpi'
EXTRA_CMAKE_ARGS: '-DENABLE_DEV_BUILD=On'

.clang_mvapich2:
variables:
Expand Down
9 changes: 1 addition & 8 deletions cmake/spheral/SpheralAddLibs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,7 @@ function(spheral_add_pybind11_library package_name module_list_name)

# Get the TPL dependencies
get_property(SPHERAL_BLT_DEPENDS GLOBAL PROPERTY SPHERAL_BLT_DEPENDS)
# If building shared libraries, use the SPHERAL_OBJ_LIBS global list
# Note, LLNLSpheral has appended any local targets to this list as well
if(ENABLE_DEV_BUILD)
get_property(SPHERAL_DEPENDS GLOBAL PROPERTY SPHERAL_OBJ_LIBS)
else()
# Otherwise, provide target names
list(APPEND SPHERAL_DEPENDS Spheral_CXX ${${package_name}_DEPENDS})
endif()
list(APPEND SPHERAL_DEPENDS Spheral_CXX ${${package_name}_DEPENDS})

set(MODULE_NAME Spheral${package_name})
PYB11Generator_add_module(${package_name}
Expand Down
13 changes: 3 additions & 10 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ endforeach()
# For dev builds, we must call LLNLSpheralInstallObjs.cmake
# to ensure LLNLSpheral libraries are added to the Spheral_CXX
# target
if(ENABLE_DEV_BUILD)
# This calls LLNLSpheralInstallObjs.cmake
if(EXISTS ${EXTERNAL_SPHERAL_OBJ_CMAKE})
include(${EXTERNAL_SPHERAL_OBJ_CMAKE})
endif()
else()
if(NOT ENABLE_DEV_BUILD)
set(CXX_sources spheralCXX.cc)
endif()
# Retrieve the global list populated in spheral_obj_add_library
Expand All @@ -93,8 +88,6 @@ get_property(SPHERAL_OBJ_LIBS GLOBAL PROPERTY SPHERAL_OBJ_LIBS)
spheral_add_cxx_library(CXX "${SPHERAL_OBJ_LIBS}")

# This calls LLNLSpheralInstallObjs.cmake
if(NOT ENABLE_DEV_BUILD)
if(EXISTS ${EXTERNAL_SPHERAL_OBJ_CMAKE})
include(${EXTERNAL_SPHERAL_OBJ_CMAKE})
endif()
if(EXISTS ${EXTERNAL_SPHERAL_OBJ_CMAKE})
include(${EXTERNAL_SPHERAL_OBJ_CMAKE})
endif()

0 comments on commit c4eb45b

Please sign in to comment.