diff options
author | Brad King <brad.king@kitware.com> | 2022-02-16 14:42:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-02-16 14:42:54 (GMT) |
commit | ba78776a94c02ef62fd41fb3269570aaff6337d6 (patch) | |
tree | 0e25239a840152bc6ec742e407afef8c400bc332 /Modules/FindGLUT.cmake | |
parent | f29c4f55cf71975654cc38ece68cd9a49c98d4b7 (diff) | |
parent | 44f7238d5d542afac860be928fa215c0f3f9a8fb (diff) | |
download | CMake-ba78776a94c02ef62fd41fb3269570aaff6337d6.zip CMake-ba78776a94c02ef62fd41fb3269570aaff6337d6.tar.gz CMake-ba78776a94c02ef62fd41fb3269570aaff6337d6.tar.bz2 |
Merge topic 'FindGLUT-link-dirs'
44f7238d5d FindGLUT: Use link directories for libs from pkg-config
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6985
Diffstat (limited to 'Modules/FindGLUT.cmake')
-rw-r--r-- | Modules/FindGLUT.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake index 80cd3a0..fe274de 100644 --- a/Modules/FindGLUT.cmake +++ b/Modules/FindGLUT.cmake @@ -79,6 +79,9 @@ function(_add_glut_target_simple) if(GLUT_LIBRARIES) target_link_libraries(GLUT::GLUT INTERFACE ${GLUT_LIBRARIES}) endif() + if(GLUT_LIBRARY_DIRS) + target_link_directories(GLUT::GLUT INTERFACE ${GLUT_LIBRARY_DIRS}) + endif() if(GLUT_LDFLAGS) target_link_options(GLUT::GLUT INTERFACE ${GLUT_LDFLAGS}) endif() |