summaryrefslogtreecommitdiff
path: root/cmake/modules/FindPCAP.cmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-01-09 13:53:17 -0800
committerGerald Combs <gerald@wireshark.org>2015-01-09 22:21:41 +0000
commit8bd80e0191abbfd896417f180e89316e380bc830 (patch)
tree7d4e817f14d60e3e12124a1de7c1c8e529c4ac6f /cmake/modules/FindPCAP.cmake
parenta81f0d1b38e86c6b4c464b49a4168924e9216df9 (diff)
downloadwireshark-8bd80e0191abbfd896417f180e89316e380bc830.tar.gz
CMake: Set WIRESHARK_TARGET_PLATFORM.
Set WIRESHARK_TARGET_PLATFORM near the top of CMakeLists.txt. It's used by a couple of our modules and will be used for NSIS packaging. Change-Id: Ief43733bdf162998cd54ff3732f94c8baa3d1e11 Reviewed-on: https://code.wireshark.org/review/6458 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'cmake/modules/FindPCAP.cmake')
-rw-r--r--cmake/modules/FindPCAP.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindPCAP.cmake b/cmake/modules/FindPCAP.cmake
index fe4018f094..d75843e275 100644
--- a/cmake/modules/FindPCAP.cmake
+++ b/cmake/modules/FindPCAP.cmake
@@ -11,7 +11,7 @@ FindWSWinLibs( "WpdPack" "PCAP_HINTS" )
# The 64-bit wpcap.lib is under /x64
set ( _PLATFORM_SUBDIR "" )
-if( WIN32 AND "$ENV{WIRESHARK_TARGET_PLATFORM}" MATCHES "64" )
+if( WIN32 AND "${WIRESHARK_TARGET_PLATFORM}" STREQUAL "win64" )
set ( _PLATFORM_SUBDIR "/x64" )
endif()