Skip to content

Commit

Permalink
Change examples install directory
Browse files Browse the repository at this point in the history
Some examples previously installed to CMAKE_INSTALL_PREFIX/programs, which isn't in the FHS. They now install to CMAKE_INSTALL_PREFIX/bin instead.
  • Loading branch information
nathanwbrei committed Jun 21, 2024
1 parent 41d2555 commit ddbec8b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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
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/pr

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 ddbec8b

Please sign in to comment.