diff options
author | Brad King <brad.king@kitware.com> | 2019-04-04 15:33:19 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-04 15:34:43 (GMT) |
commit | 85b26a7254ce66404227f2b715fd4e29c64668f6 (patch) | |
tree | 9472521cff3d9fb4fbeed277ae672e98031e2161 /Modules | |
parent | a15ed54dca5ebd2535a737b7200677c945c5c082 (diff) | |
parent | 14c7396fb940d04f2afd3e9a7230fa6d4fac8145 (diff) | |
download | CMake-85b26a7254ce66404227f2b715fd4e29c64668f6.zip CMake-85b26a7254ce66404227f2b715fd4e29c64668f6.tar.gz CMake-85b26a7254ce66404227f2b715fd4e29c64668f6.tar.bz2 |
Merge topic 'FindGLEW-lib-suffixes'
14c7396fb9 FindGLEW: fix CMAKE_FIND_LIBRARY_SUFFIXES
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3179
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindGLEW.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake index 34ee873..2e9a052 100644 --- a/Modules/FindGLEW.cmake +++ b/Modules/FindGLEW.cmake @@ -117,6 +117,8 @@ else() endif() +set(__GLEW_CURRENT_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) + __glew_set_find_library_suffix(SHARED) find_library(GLEW_SHARED_LIBRARY_RELEASE @@ -142,6 +144,9 @@ find_library(GLEW_STATIC_LIBRARY_DEBUG PATH_SUFFIXES lib lib64 PATHS ENV GLEW_ROOT) +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) |