Skip to content

Commit

Permalink
Don't look for all Toxcore libs by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Sep 17, 2017
1 parent 49782c2 commit be3ba28
Showing 1 changed file with 20 additions and 12 deletions.
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

0 comments on commit be3ba28

Please sign in to comment.