diff --git a/CMakeLists.txt b/CMakeLists.txt index 55f0f15..39bf21f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,11 @@ set(SOEM_LIB_INSTALL_DIR lib) if(WIN32) set(OS "win32") include_directories(oshw/win32/wpcap/Include) - link_directories(${CMAKE_SOURCE_DIR}/oshw/win32/wpcap/Lib) + if(CMAKE_SIZEOF_VOID_P EQUAL 8) + link_directories(${CMAKE_SOURCE_DIR}/oshw/win32/wpcap/Lib/x64) + elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) + link_directories(${CMAKE_SOURCE_DIR}/oshw/win32/wpcap/Lib) + endif() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_SECURE_NO_WARNINGS") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") set(OS_LIBS wpcap.lib Packet.lib Ws2_32.lib Winmm.lib)