mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
More cmake migrate for removal of MX
This commit is contained in:
parent
be2688de70
commit
9e66fc86a3
@ -1,23 +1,23 @@
|
||||
# This config-module creates the following import libraries:
|
||||
#
|
||||
# - GLEW::glew and GLEW::glewmx shared libs
|
||||
# - GLEW::glew_s and GLEW::glewmx_s static libs
|
||||
# - GLEW::glew shared lib
|
||||
# - GLEW::glew_s static lib
|
||||
#
|
||||
# Additionally GLEW::GLEW and GLEW::GLEWMX will be created as an
|
||||
# Additionally GLEW::GLEW will be created as an
|
||||
# copy of either the shared (default) or the static libs.
|
||||
#
|
||||
# Dependending on the setting of BUILD_SHARED_LIBS at GLEW build time
|
||||
# either the static or shared versions may not be available.
|
||||
#
|
||||
# Set GLEW_USE_STATIC_LIBS to OFF or ON to force using the shared
|
||||
# or static libs for GLEW::GLEW and GLEW::GLEWMX
|
||||
# or static lib for GLEW::GLEW
|
||||
#
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/glew-targets.cmake)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/CopyImportedTargetProperties.cmake)
|
||||
|
||||
# decide which import library (glew/glew_s and glewmx/glewmx_s)
|
||||
# needs to be copied to GLEW::GLEW and GLEW::GLEWMX
|
||||
# decide which import library (glew/glew_s)
|
||||
# needs to be copied to GLEW::GLEW
|
||||
set(_glew_target_postfix "")
|
||||
set(_glew_target_type SHARED)
|
||||
if(DEFINED GLEW_USE_STATIC_LIBS)
|
||||
@ -37,7 +37,7 @@ endif()
|
||||
|
||||
# CMake doesn't allow creating ALIAS lib for an IMPORTED lib
|
||||
# so create imported ones and copy the properties
|
||||
foreach(_glew_target glew glewmx)
|
||||
foreach(_glew_target glew)
|
||||
set(_glew_src_target "GLEW::${_glew_target}${_glew_target_postfix}")
|
||||
string(TOUPPER "GLEW::${_glew_target}" _glew_dest_target)
|
||||
if(TARGET ${_glew_dest_target})
|
||||
|
Loading…
Reference in New Issue
Block a user