@@ -106,7 +106,7 @@ install( DIRECTORY ${PROJECT_BINARY_DIR}/include DESTINATION . )
106106# Generate version information
107107################################
108108include ( cmake/GeosxVersion.cmake )
109- message ( STATUS "Configuring GEOSX version ${GEOS_VERSION_FULL } " )
109+ message ( STATUS "Configuring GEOSX version ${GEOSX_VERSION_FULL } " )
110110
111111
112112################################
@@ -127,25 +127,35 @@ if( ENABLE_CUDA )
127127 list ( APPEND extraComponentsLinkList cuda )
128128endif ()
129129
130- if ( ENABLE_CUDA AND ENABLE_CUDA_NVTOOLSEXT )
130+ if ( ENABLE_CUDA_NVTOOLSEXT )
131131 list ( APPEND extraComponentsLinkList CUDA::nvToolsExt )
132132endif ()
133133
134134if ( ENABLE_HIP )
135135 list ( APPEND extraComponentsLinkList blt::hip )
136136endif ()
137137
138+ if ( GEOSX_BUILD_SHARED_LIBS )
139+ list ( APPEND extraComponentsLinkList geosx_core )
140+ else ()
141+ list ( APPEND extraComponentsLinkList ${geosx_core_libs} )
142+ endif ()
143+
138144blt_add_executable( NAME geosx
139145 SOURCES main/main.cpp
140- DEPENDS_ON geosx_core
141- ${extraComponentsLinkList}
146+ DEPENDS_ON ${extraComponentsLinkList}
142147 ${externalComponentsLinkList} )
143148
144149# Seems to be required on some CMake versions (e.g. 3.16) to get enforce device linking
145150if ( ${ENABLE_HYPRE_DEVICE} STREQUAL "CUDA" )
146151 set_target_properties ( geosx PROPERTIES CUDA_RESOLVE_DEVICE_SYMBOLS TRUE )
147152endif ()
148153
154+ # Removing all transitive link dependencies from geosx_core target to circumvent
155+ # the BLT behavior which imposes all dependencies to be public
156+ #set_target_properties(geosx_core PROPERTIES INTERFACE_LINK_LIBRARIES "")
157+
158+ target_include_directories ( geosx PUBLIC ${CMAKE_SOURCE_DIR} /coreComponents )
149159
150160# To change the runtime path during installation
151161set_target_properties ( geosx PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /lib" )
@@ -211,7 +221,7 @@ add_custom_target( geosx_generate_install_schema
211221 COMMENT "Generating XML schema to install"
212222 )
213223
214- if ( NOT GEOS_INSTALL_SCHEMA )
224+ if ( NOT GEOSX_INSTALL_SCHEMA )
215225 set_target_properties (geosx_generate_install_schema PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
216226endif ()
217227
@@ -222,8 +232,8 @@ install( FILES ${CMAKE_BINARY_DIR}/schema.xsd
222232################################
223233# Add python environment setup
224234################################
225- # message(WARNING "Temporarily changing the geosPythonBranch to feature/packaging ")
226- # set(GEOS_PYTHON_PACKAGES_BRANCH "feature/packaging " CACHE STRING "" FORCE)
235+ message (WARNING "Temporarily changing the geosPythonBranch to feature/sherman/skipRebaselineFailRun " )
236+ set (GEOS_PYTHON_PACKAGES_BRANCH "feature/sherman/skipRebaselineFailRun " CACHE STRING "" FORCE)
227237
228238
229239if ( Python3_EXECUTABLE )
@@ -255,19 +265,19 @@ if ( Python3_EXECUTABLE )
255265 set (GEOS_PYTHON_PACKAGES_BRANCH "main" CACHE STRING "" FORCE)
256266 endif ()
257267
258- set ( GEOS_PYTHON_TOOLS_BINS
268+ set ( GEOSX_PYTHON_TOOLS_BINS
259269 "${CMAKE_BINARY_DIR} /bin/preprocess_xml"
260270 "${CMAKE_BINARY_DIR} /bin/format_xml" )
261271
262- add_custom_command ( OUTPUT ${GEOS_PYTHON_TOOLS_BINS }
272+ add_custom_command ( OUTPUT ${GEOSX_PYTHON_TOOLS_BINS }
263273 COMMAND bash ${CMAKE_SOURCE_DIR} /../scripts/setupPythonEnvironment.bash -p ${PYTHON_POST_EXECUTABLE} -b ${CMAKE_BINARY_DIR} /bin --python-pkg-branch ${GEOS_PYTHON_PACKAGES_BRANCH}
264274 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )
265275
266276 add_custom_target ( geosx_python_tools
267- DEPENDS ${GEOS_PYTHON_TOOLS_BINS } )
277+ DEPENDS ${GEOSX_PYTHON_TOOLS_BINS } )
268278
269279 add_custom_target ( geosx_python_tools_clean
270- COMMAND rm ${GEOS_PYTHON_TOOLS_BINS } )
280+ COMMAND rm ${GEOSX_PYTHON_TOOLS_BINS } )
271281
272282 add_custom_target ( geosx_python_tools_test
273283 COMMAND ${CMAKE_BINARY_DIR} /python/geosx/bin/test_geosx_xml_tools
0 commit comments