diff --git a/CMakeModules/FindHelpers.cmake b/CMakeModules/FindHelpers.cmake index 36003191c..1133bc4a3 100644 --- a/CMakeModules/FindHelpers.cmake +++ b/CMakeModules/FindHelpers.cmake @@ -327,7 +327,7 @@ MACRO(FIND_PACKAGE_HELPER NAME INCLUDE) LIST(REMOVE_DUPLICATES _DEBUG_LIBRARIES) # Search for release library - IF(DEFINED ENV{${_UPNAME_FIXED}_ROOT}) + IF(DEFINED ENV{${_UPNAME_FIXED}_ROOT} AND NOT WIN32) FIND_LIBRARY(${_UPNAME_FIXED}_LIBRARY_RELEASE NAMES ${_RELEASE_LIBRARIES} @@ -361,7 +361,7 @@ MACRO(FIND_PACKAGE_HELPER NAME INCLUDE) ENDIF() # Search for debug library - IF(DEFINED ENV{${_UPNAME_FIXED}_ROOT}) + IF(DEFINED ENV{${_UPNAME_FIXED}_ROOT} AND NOT WIN32) FIND_LIBRARY(${_UPNAME_FIXED}_LIBRARY_DEBUG NAMES ${_DEBUG_LIBRARIES}