Skip to content

Commit

Permalink
Fix NBodyResourceLib target dependency (#7)
Browse files Browse the repository at this point in the history
Add NBodyResourceLib dependency on Corrade::Utility to fix
builds using a local Corrade build (rather than system-wide)
  • Loading branch information
rafbiels authored Jan 9, 2024
1 parent f7fd0b6 commit ab5e6c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nbody/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
corrade_add_resource(NBody_RESOURCES assets/resources.conf)

add_library(NBodyResourceLib SHARED ${NBody_RESOURCES})
target_link_libraries(NBodyResourceLib PRIVATE Corrade::Utility)
# Ignore unused variable in the file automatically generated by Corrade
target_compile_options(NBodyResourceLib PRIVATE -Wno-unused-const-variable)

Expand Down

0 comments on commit ab5e6c4

Please sign in to comment.