summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-15 15:37:11 (GMT)
committerBrad King <brad.king@kitware.com>2022-02-15 15:37:11 (GMT)
commit35967588116e96ea048c831fc2eae0a8c2061926 (patch)
treeedeb5666215aaf9d04bc7f6470fca11b1b6abec0
parenta16cefeafe4a043b94675a1eaf7d51c24e51ecd3 (diff)
parent44f7238d5d542afac860be928fa215c0f3f9a8fb (diff)
downloadCMake-35967588116e96ea048c831fc2eae0a8c2061926.zip
CMake-35967588116e96ea048c831fc2eae0a8c2061926.tar.gz
CMake-35967588116e96ea048c831fc2eae0a8c2061926.tar.bz2
Merge branch 'FindGLUT-link-dirs' into release-3.22
Merge-request: !6985
-rw-r--r--Modules/FindGLUT.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake
index 636f1ea..9c80ad7 100644
--- a/Modules/FindGLUT.cmake
+++ b/Modules/FindGLUT.cmake
@@ -55,6 +55,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()