summaryrefslogtreecommitdiffstats
path: root/Modules/FindGLEW.cmake
diff options
context:
space:
mode:
authorMarkus Mützel <markus.muetzel@gmx.de>2022-06-26 08:38:11 (GMT)
committerMarkus Mützel <markus.muetzel@gmx.de>2022-06-26 08:38:11 (GMT)
commit6c8789af757e295bd1a42e6eb44260c1f79b8382 (patch)
treed926553e7792a542dfd2976af73e3089583b6663 /Modules/FindGLEW.cmake
parent526d10139de4472333446a84859632861e7cea5a (diff)
downloadCMake-6c8789af757e295bd1a42e6eb44260c1f79b8382.zip
CMake-6c8789af757e295bd1a42e6eb44260c1f79b8382.tar.gz
CMake-6c8789af757e295bd1a42e6eb44260c1f79b8382.tar.bz2
FindGLEW: select_library_configuration might be used before it is defined
Fixes a regression from a31b27078595fce911b2469937ac12934555644a
Diffstat (limited to 'Modules/FindGLEW.cmake')
-rw-r--r--Modules/FindGLEW.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake
index a0fda1f..bfde40b 100644
--- a/Modules/FindGLEW.cmake
+++ b/Modules/FindGLEW.cmake
@@ -63,6 +63,7 @@ This module defines the following variables:
#]=======================================================================]
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
find_package(GLEW CONFIG QUIET)
@@ -195,8 +196,6 @@ find_library(GLEW_STATIC_LIBRARY_DEBUG
set(CMAKE_FIND_LIBRARY_SUFFIXES ${__GLEW_CURRENT_FIND_LIBRARY_SUFFIXES})
unset(__GLEW_CURRENT_FIND_LIBRARY_SUFFIXES)
-include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
-
select_library_configurations(GLEW_SHARED)
select_library_configurations(GLEW_STATIC)