1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(build): fix formatting

This commit is contained in:
sudden6 2017-07-02 23:08:22 +02:00
parent cf06cc7a1d
commit b4e9fc7b83
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
3 changed files with 13 additions and 14 deletions

View File

@ -74,16 +74,18 @@ function(search_dependency pkg)
message(STATUS "${pkg} not found") message(STATUS "${pkg} not found")
endif() endif()
else() else()
message(STATUS ${pkg} " LIBRARY_DIRS: " ${${pkg}_LIBRARY_DIRS} ) message(STATUS ${pkg} " LIBRARY_DIRS: " ${${pkg}_LIBRARY_DIRS} )
message(STATUS ${pkg} " INCLUDE_DIRS: " ${${pkg}_INCLUDE_DIRS} ) message(STATUS ${pkg} " INCLUDE_DIRS: " ${${pkg}_INCLUDE_DIRS} )
message(STATUS ${pkg} " CFLAGS_OTHER: " ${${pkg}_CFLAGS_OTHER} ) message(STATUS ${pkg} " CFLAGS_OTHER: " ${${pkg}_CFLAGS_OTHER} )
message(STATUS ${pkg} " LIBRARIES: " ${${pkg}_LIBRARIES} ) message(STATUS ${pkg} " LIBRARIES: " ${${pkg}_LIBRARIES} )
link_directories(${${pkg}_LIBRARY_DIRS}) link_directories(${${pkg}_LIBRARY_DIRS})
include_directories(${${pkg}_INCLUDE_DIRS}) include_directories(${${pkg}_INCLUDE_DIRS})
foreach(flag ${${pkg}_CFLAGS_OTHER}) foreach(flag ${${pkg}_CFLAGS_OTHER})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
endforeach() endforeach()
set(ALL_LIBRARIES ${ALL_LIBRARIES} ${${pkg}_LIBRARIES} PARENT_SCOPE) set(ALL_LIBRARIES ${ALL_LIBRARIES} ${${pkg}_LIBRARIES} PARENT_SCOPE)
message(STATUS "${pkg} found") message(STATUS "${pkg} found")
endif() endif()
@ -98,11 +100,6 @@ search_dependency(LIBAVUTIL PACKAGE libavutil)
search_dependency(LIBQRENCODE PACKAGE libqrencode) search_dependency(LIBQRENCODE PACKAGE libqrencode)
search_dependency(LIBSODIUM PACKAGE libsodium) search_dependency(LIBSODIUM PACKAGE libsodium)
search_dependency(LIBSWSCALE PACKAGE libswscale) search_dependency(LIBSWSCALE PACKAGE libswscale)
if(WIN32)
search_dependency(OPENSSL PACKAGE openssl)
endif()
search_dependency(SQLCIPHER PACKAGE sqlcipher) search_dependency(SQLCIPHER PACKAGE sqlcipher)
search_dependency(VPX PACKAGE vpx) search_dependency(VPX PACKAGE vpx)
@ -138,6 +135,8 @@ endif()
if(WIN32) if(WIN32)
set(ALL_LIBRARIES ${ALL_LIBRARIES} strmiids) set(ALL_LIBRARIES ${ALL_LIBRARIES} strmiids)
# Qt doesn't provide openssl on windows
search_dependency(OPENSSL PACKAGE openssl)
endif() endif()
if (NOT GIT_DESCRIBE) if (NOT GIT_DESCRIBE)