/usr/lib
)
+FIND_LIBRARY(SATSOLVER_EXT_LIBRARY NAMES satsolverext
+ PATHS
+ ${CMAKE_INSTALL_PREFIX}/lib
+ /usr/local/lib
+ /usr/lib
+)
+
if(SATSOLVER_INCLUDE_DIR AND SATSOLVER_LIBRARY)
- MESSAGE( STATUS "satsolver found: includes in ${SATSOLVER_INCLUDE_DIR}, library in ${SATSOLVER_LIBRARY}")
+ MESSAGE( STATUS "satsolver found: includes in ${SATSOLVER_INCLUDE_DIR}, library in ${SATSOLVER_LIBRARY} ${SATSOLVER_EXT_LIBRARY} ")
set(SATSOLVER_FOUND TRUE)
else(SATSOLVER_INCLUDE_DIR AND SATSOLVER_LIBRARY)
MESSAGE( STATUS "** satsolver not found")
Obsoletes: yast2-packagemanager
Recommends: logrotate
BuildRequires: cmake
-BuildRequires: libsatsolver-devel >= 0.14.0 openssl-devel
+BuildRequires: libsatsolver-devel >= 0.14.2 openssl-devel
BuildRequires: boost-devel curl-devel dejagnu doxygen gcc-c++ gettext-devel graphviz hal-devel libxml2-devel
# required for testsuite, webrick
TARGET_LINK_LIBRARIES(zypp ${CURL_LIBRARY} )
TARGET_LINK_LIBRARIES(zypp ${LIBXML_LIBRARY} )
TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
-TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} ${EXPAT_LIBRARY})
+TARGET_LINK_LIBRARIES(zypp ${SATSOLVER_LIBRARY} ${SATSOLVER_EXT_LIBRARY} ${EXPAT_LIBRARY})
TARGET_LINK_LIBRARIES(zypp ${OPENSSL_LIBRARIES} )
TARGET_LINK_LIBRARIES(zypp ${CRYPTO_LIBRARIES} )
TARGET_LINK_LIBRARIES(zypp ${SIGNALS_LIBRARY} )
#include "zypp/target/modalias/Modalias.h"
+extern "C"
+{
+// Workaround satsolver project not providing a common include
+// directory. (the -devel package does, but the git repo doesn't).
+// #include <satsolver/repo_helix.h>
+void repo_add_helix( ::Repo *repo, FILE *fp, int flags );
+}
+
using std::endl;
#undef ZYPP_BASE_LOGGER_LOGGROUP
#include <satsolver/solvable.h>
#include <satsolver/poolarch.h>
#include <satsolver/repo_solv.h>
-#include <satsolver/repo_helix.h>
}
#include <iosfwd>