Skip to content

Commit

Permalink
Revert head and try linking directly to corecel and adding debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Jan 23, 2024
1 parent 6ae1056 commit c05e096
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmake/CeleritasLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ endfunction()
# the 3 libraries (static, middle, final) libraries needed
# for a separatable CUDA library
function(celeritas_target_link_libraries target)
if(NOT CMAKE_CUDA_COMPILER)
if(NOT CMAKE_CUDA_COMPILER OR NOT CELERITAS_USE_VecGeom)
target_link_libraries(${ARGV})
return()
endif()
Expand Down
2 changes: 2 additions & 0 deletions example/accel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.18)
project(CeleritasAccelExample VERSION 0.0.1 LANGUAGES CXX)
cmake_policy(VERSION 3.12...3.22)

set(CMAKE_DEBUG_TARGET_PROPERTIES LINK_DIRECTORIES)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/..")
find_package(Celeritas 0.5 REQUIRED)
find_package(Geant4 REQUIRED)
Expand Down
4 changes: 4 additions & 0 deletions example/minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/..")
find_package(Celeritas 0.5 REQUIRED)

add_executable(minimal minimal.cc)
target_link_libraries(minimal
Celeritas::corecel
)


# Use special linking macros to support CUDA RDC across multiple libraries when
# using VecGeom.
Expand Down
6 changes: 0 additions & 6 deletions scripts/ci/test-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ build_local() {
ninja
}

cd "${CELER_INSTALL_DIR}/lib64/cmake/Celeritas"
for f in Celeritas* ; do
echo "********** $f ***********"
cat $f
done

cd "${CELER_SOURCE_DIR}/example/minimal"
build_local
./minimal
Expand Down

0 comments on commit c05e096

Please sign in to comment.