Skip to content
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

Don't look for all Toxcore libs by default. #1056

Merged
merged 1 commit into from
Sep 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 20 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,18 +262,26 @@ if(ENABLE_AUTOUPDATE)
add_cflag("-DENABLE_AUTOUPDATE=1")
endif()

find_package(libtox REQUIRED COMPONENTS
toxencryptsave
toxav
toxcore
toxgroup
toxmessenger
toxfriends
toxdht
toxnetcrypto
toxcrypto
toxnetwork
)
if(TOXCORE_STATIC)
find_package(libtox REQUIRED COMPONENTS
toxencryptsave
toxav
toxcore
toxgroup
toxmessenger
toxfriends
toxdht
toxnetcrypto
toxcrypto
toxnetwork
)
else()
find_package(libtox REQUIRED COMPONENTS
toxencryptsave
toxav
toxcore
)
endif()

include_directories(${LIBTOX_INCLUDE_DIRS})

Expand Down