-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake command couldn't find libtins #14
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1) | ||
PROJECT(dot11decrypt) | ||
|
||
FIND_PACKAGE(libtins REQUIRED) | ||
SET(CMAKE_CXX_STANDARD 11) | ||
SET(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
PROJECT(dot11decrypt) | ||
|
||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") | ||
FIND_LIBRARY(TINS_LIBRARY tins) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why didn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am using armbian 5.73 and for some reason find_package didn't work when I installed libtins-dev via apt. |
||
|
||
ADD_EXECUTABLE(dot11decrypt dot11decrypt.cpp) | ||
TARGET_LINK_LIBRARIES(dot11decrypt ${LIBTINS_LIBRARIES} pthread) | ||
TARGET_LINK_LIBRARIES(dot11decrypt ${TINS_LIBRARY} pthread) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this move down here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example I saw that worked for me had it like this, I can move it back up