Skip to content

Commit

Permalink
Merge pull request #309 from JeffersonLab/nbrei_build_system_fixes
Browse files Browse the repository at this point in the history
Bugfix: Build system fixes
  • Loading branch information
nathanwbrei authored Jun 21, 2024
2 parents 2d0d677 + 8f09ea4 commit a56fbc7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ Darwin_*
.Darwin_*
Makefile

build/
cmake-build-debug/
install/
bin/
include/
lib/
programs/
/build*/
/install*/

/bin/
/include/
/lib/

# Doxygen generated files
docs/html/*
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ endfunction()
#----------------------

option(USE_ROOT "Include ROOT dependency." OFF)
option(USE_ZEROMQ "Include ZeroMQ dependency. (Needed for examples/StreamingExample, programs/StreamDet, plugins/janacontrol), " OFF)
option(USE_ZEROMQ "Include ZeroMQ dependency. (Needed for examples/StreamingExample, plugins/streamDet, plugins/janacontrol), " OFF)
option(USE_XERCES "Include XercesC 3 dependency. (Needed for JGeometryXML)" OFF)
option(USE_PYTHON "Include Python dependency. This requires python-devel and python-distutils." OFF)
option(USE_ASAN "Compile with address sanitizer" OFF)
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/submit_SubeventCUDAExample.slurm
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ srun cmake --build build -j 32 --target install

# run
echo "\n Launching SubeventCUDAExample for 1s..."
srun ./install/programs/SubeventCUDAExample & \
srun ./install/bin/SubeventCUDAExample & \
sleep 1 # exit effect
7 changes: 6 additions & 1 deletion scripts/jana-config.in
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ while test $# -gt 0; do
esac
case $1 in
--libs)
mess="$mess -L${JANA_INSTALL_DIR}/lib -lJANA ${LDFLAGS} ${JANA_ONLY_LIBS} ${LIBS}"
mess="$mess -Wl,-rpath,${JANA_INSTALL_DIR}/lib -L${JANA_INSTALL_DIR}/lib -lJANA ${LDFLAGS} ${JANA_ONLY_LIBS} ${LIBS}"
;;
esac
case $1 in
--static-libs)
mess="$mess ${JANA_INSTALL_DIR}/lib/libJANA.a ${LDFLAGS} ${JANA_ONLY_LIBS} ${LIBS}"
;;
esac
case $1 in
Expand Down
2 changes: 1 addition & 1 deletion src/examples/SubeventCUDAExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (USE_CUDA)
target_link_libraries(SubeventCUDAExample jana2)
set_target_properties(SubeventCUDAExample PROPERTIES PREFIX "" OUTPUT_NAME "SubeventCUDAExample"
CUDA_ARCHITECTURES "75;80")
install(TARGETS SubeventCUDAExample DESTINATION programs)
install(TARGETS SubeventCUDAExample DESTINATION bin)
else()
message(STATUS "Skipping examples/SubeventCUDAExample because USE_CUDA=Off")

Expand Down
2 changes: 1 addition & 1 deletion src/examples/SubeventCUDAExample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ This is an example that can run on a single GPU.
```
Launch the application.
```bash
bash-4.2$ ./install/programs/SubeventCUDAExample
bash-4.2$ ./install/bin/SubeventCUDAExample
```

2 changes: 1 addition & 1 deletion src/examples/UnitTestingExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ target_include_directories(UnitTestingExample PRIVATE ${CMAKE_SOURCE_DIR}/src/ex

target_link_libraries(UnitTestingExample Tutorial_plugin jana2)
set_target_properties(UnitTestingExample PROPERTIES PREFIX "" OUTPUT_NAME "UnitTestingExample")
install(TARGETS UnitTestingExample DESTINATION programs)
install(TARGETS UnitTestingExample DESTINATION bin)

0 comments on commit a56fbc7

Please sign in to comment.