-
Notifications
You must be signed in to change notification settings - Fork 780
Open
Description
MSVC is unable to link wpcap.lib
when using this repository as a sub-project via the CMake fetch_content
module. The error message is as follows:
[build] LINK : fatal error LNK1104: 无法打开文件“wpcap.lib” [E:\mycode\soem_test\build\cpp_test.vcxproj]
This issue may be related to the following lines in the CMakeLists.txt file:
Lines 25 to 30 in 1817b8b
include_directories(oshw/win32/wpcap/Include) | |
if(CMAKE_SIZEOF_VOID_P EQUAL 8) | |
link_directories(${CMAKE_CURRENT_LIST_DIR}/oshw/win32/wpcap/Lib/x64) | |
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) | |
link_directories(${CMAKE_CURRENT_LIST_DIR}/oshw/win32/wpcap/Lib) | |
endif() |
It appears that the directory is not being passed to the parent project.
Metadata
Metadata
Assignees
Labels
No labels