mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: fix HAVE_QSSLSOCKET configuration test when build against Katie
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
a03f7037f0
commit
a371d6e674
1 changed files with 12 additions and 16 deletions
|
@ -1,28 +1,24 @@
|
|||
####### checks for kdecore/network (and netsupp.cpp) ###############
|
||||
|
||||
# FIXME: the ssl check fails for some reason
|
||||
if(KATIE_FOUND)
|
||||
set(HAVE_QSSLSOCKET TRUE)
|
||||
else()
|
||||
macro_push_required_vars()
|
||||
set(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${QT_INCLUDE_DIR}")
|
||||
if (QT_USE_FRAMEWORKS)
|
||||
set(CMAKE_REQUIRED_FLAGS "-F${QT_LIBRARY_DIR} ")
|
||||
endif (QT_USE_FRAMEWORKS)
|
||||
check_cxx_source_compiles(
|
||||
macro_push_required_vars()
|
||||
set(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${QT_INCLUDE_DIR}")
|
||||
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} ${QT_DEFINITIONS}")
|
||||
if (QT_USE_FRAMEWORKS)
|
||||
set(CMAKE_REQUIRED_FLAGS "-F${QT_LIBRARY_DIR} ")
|
||||
endif (QT_USE_FRAMEWORKS)
|
||||
check_cxx_source_compiles(
|
||||
"#include <QtNetwork/QSslSocket>
|
||||
int main()
|
||||
{
|
||||
QSslSocket *socket;
|
||||
return 0;
|
||||
}" HAVE_QSSLSOCKET
|
||||
)
|
||||
)
|
||||
|
||||
if (NOT HAVE_QSSLSOCKET)
|
||||
message(SEND_ERROR "KDE Requires Qt to be built with SSL support")
|
||||
endif()
|
||||
macro_pop_required_vars()
|
||||
endif(KATIE_FOUND)
|
||||
if (NOT HAVE_QSSLSOCKET)
|
||||
message(SEND_ERROR "KDE Requires Qt to be built with SSL support")
|
||||
endif()
|
||||
macro_pop_required_vars()
|
||||
|
||||
check_include_files("sys/types.h;sys/socket.h;net/if.h" HAVE_NET_IF_H)
|
||||
check_include_files("sys/filio.h" HAVE_SYS_FILIO_H)
|
||||
|
|
Loading…
Add table
Reference in a new issue