Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Use public/private for target_link_libraries in add_flamegpu_executable #701

Closed
ptheywood opened this issue Oct 4, 2021 · 0 comments · Fixed by #703
Closed

CMake: Use public/private for target_link_libraries in add_flamegpu_executable #701

ptheywood opened this issue Oct 4, 2021 · 0 comments · Fixed by #703
Labels

Comments

@ptheywood
Copy link
Member

CMake was previously refactored to use PUBLIC/PRIVATE/Intergace for link/includes for the main library, but I missed 2 calls for executable creation which still use the generic target_link_libraries. This should instead use PRIVATE so users can do the same.

target_link_libraries(${NAME} flamegpu)

target_link_libraries(${NAME} "${CMAKE_CURRENT_BINARY_DIR}/$<TARGET_FILE:flamegpu>")

@ptheywood ptheywood added the cmake label Oct 4, 2021
@ptheywood ptheywood changed the title CMakeL Use Public/private for target_link_libraries in add_flamegpu_executable CMake: Use public/private for target_link_libraries in add_flamegpu_executable Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant