summaryrefslogtreecommitdiffstats
path: root/Modules/FindGLUT.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-16 14:42:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-16 14:42:54 (GMT)
commitba78776a94c02ef62fd41fb3269570aaff6337d6 (patch)
tree0e25239a840152bc6ec742e407afef8c400bc332 /Modules/FindGLUT.cmake
parentf29c4f55cf71975654cc38ece68cd9a49c98d4b7 (diff)
parent44f7238d5d542afac860be928fa215c0f3f9a8fb (diff)
downloadCMake-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.cmake3
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()