mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
FindGLUT: On Windows and with multiple config generator do not use pkg-config
This commit is contained in:
committed by
Silvio
parent
164a156c7c
commit
e0a62b84b5
@@ -95,7 +95,10 @@ function(_add_glut_target_simple)
|
||||
endfunction()
|
||||
|
||||
find_package(PkgConfig QUIET)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||
# On WIN32 and when using a multiple config generator, pkg-config
|
||||
# is not used as it cannot distinguish between release and debug libraries
|
||||
if(PKG_CONFIG_FOUND AND NOT (_isMultiConfig AND WIN32))
|
||||
# Tell pkg-config not to strip any -I flags to make sure GLUT_INCLUDE_DIRS
|
||||
# will be defined.
|
||||
if(DEFINED ENV{PKG_CONFIG_ALLOW_SYSTEM_CFLAGS})
|
||||
|
||||
Reference in New Issue
Block a user