CMake: move find_package for lzma and secretstore to init.cmake
This commit is contained in:
@@ -154,6 +154,20 @@ if(wxUSE_THREADS)
|
||||
find_package(Threads REQUIRED)
|
||||
endif()
|
||||
|
||||
if(wxUSE_LIBLZMA)
|
||||
find_package(LibLZMA REQUIRED)
|
||||
endif()
|
||||
|
||||
if(UNIX AND wxUSE_SECRETSTORE)
|
||||
# The required APIs are always available under MSW and OS X but we must
|
||||
# have GNOME libsecret under Unix to be able to compile this class.
|
||||
find_package(Libsecret REQUIRED)
|
||||
if(NOT LIBSECRET_FOUND)
|
||||
message(WARNING "libsecret not found, wxSecretStore won't be available")
|
||||
wx_option_force_value(wxUSE_SECRETSTORE OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(wxUSE_GUI)
|
||||
if(WXMSW AND wxUSE_METAFILE)
|
||||
# this one should probably be made separately configurable
|
||||
|
Reference in New Issue
Block a user