diff options
author | Brad King <brad.king@kitware.com> | 2021-12-17 17:59:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-17 20:17:29 (GMT) |
commit | ae6b25d920325585f0e7f56d23d2b0f8e0b39af8 (patch) | |
tree | 86c4f7bc3d716d7292cc082d06a009774eb10e87 /Tests/FindGLUT | |
parent | 92ecf5c9897e03575ac47be3a4f720b1861d3760 (diff) | |
download | CMake-ae6b25d920325585f0e7f56d23d2b0f8e0b39af8.zip CMake-ae6b25d920325585f0e7f56d23d2b0f8e0b39af8.tar.gz CMake-ae6b25d920325585f0e7f56d23d2b0f8e0b39af8.tar.bz2 |
FindGLUT: Provide legacy GLUT_INCLUDE_DIR result in pkg-config code path
Since commit f90d15458a (FindGLUT: Use pkg-config to find flags if
available, 2021-06-11, v3.22.0-rc1~469^2) we return early if pkg-config
provides the information. During review of that commit, code to
populate the legacy `GLUT_INCLUDE_DIR` result variable was removed from
that code path. Add code to provide it.
Also fix the test case to use `GLUT_INCLUDE_DIR`, the result variable
documented officially by the module.
Fixes: #23018
Diffstat (limited to 'Tests/FindGLUT')
-rw-r--r-- | Tests/FindGLUT/Test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindGLUT/Test/CMakeLists.txt b/Tests/FindGLUT/Test/CMakeLists.txt index 0f4e536..f6440b2 100644 --- a/Tests/FindGLUT/Test/CMakeLists.txt +++ b/Tests/FindGLUT/Test/CMakeLists.txt @@ -9,7 +9,7 @@ target_link_libraries(testglut_tgt GLUT::GLUT) add_test(NAME testglut_tgt COMMAND testglut_tgt) add_executable(testglut_var main.c) -target_include_directories(testglut_var PRIVATE ${GLUT_INCLUDE_DIRS}) +target_include_directories(testglut_var PRIVATE ${GLUT_INCLUDE_DIR}) target_link_libraries(testglut_var PRIVATE ${GLUT_LIBRARIES}) add_test(NAME testglut_var COMMAND testglut_var) |