Open MickaMickaMicka opened 2 years ago
This StackOverflow post contains a long answer that worked for me on Windows. (I built with VS 2022 though and didn't have any pthreads issues. Still it shows how to add inlcude paths which is likely what you need) https://stackoverflow.com/questions/60841031/libtins-sniffer-undefined
I am failing to compile libtins with npcap sdk 1.13 with visual studio 2019 compiler and I dont know whether I am doing it right. I have pthreads as a library in my local development environment. It looks as if it is needed by pcap but isn't found by CMake.
I set
and I am getting that output:
Error message in CMakeError that pthread.h couldnt be opened. That's clear because CMake doesn know where to search for it...
Is there any solution? How can I tell CMake or libtins where to search for pthread?