aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/modules/FindWSWinLibs.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/FindWSWinLibs.cmake b/cmake/modules/FindWSWinLibs.cmake
index 3442e84ed0..f98f58c1a8 100644
--- a/cmake/modules/FindWSWinLibs.cmake
+++ b/cmake/modules/FindWSWinLibs.cmake
@@ -15,8 +15,8 @@ function(FindWSWinLibs _WS_LIB_SEARCH_PATH _LIB_HINT_VAR)
set( _PROJECT_LIB_DIR "${_WS_BASE_DIR}/wireshark-${_WS_TARGET_PLATFORM}-libs" )
file( GLOB _SUBDIR "${_PROJECT_LIB_DIR}/*" )
foreach( _DIR ${_SUBDIR} )
- if( IS_DIRECTORY ${dir} )
- if( "${_DIR}" matches ".*/${_WS_LIB_SEARCH_PATH}" )
+ if( IS_DIRECTORY ${_DIR} )
+ if( "${_DIR}" MATCHES ".*/${_WS_LIB_SEARCH_PATH}" )
set( ${_LIB_HINT_VAR} ${_DIR} PARENT_SCOPE )
endif()
endif()