]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix build without C++ 520/head
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 12 Feb 2023 14:27:27 +0000 (15:27 +0100)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 12 Feb 2023 14:27:27 +0000 (15:27 +0100)
Fix the following build failure without C++:

CMake Error at CMakeLists.txt:1 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

Fixes:
 - http://autobuild.buildroot.org/results/a7f2176d40f156c319754ef5d3b7fd0decfe754f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
CMakeLists.txt
ext/CMakeLists.txt

index 3541f496cb25ae8b9defbcc0754b40a897556d61..f899c49ac7f0419947845c0ea208eb390875a4d6 100644 (file)
@@ -1,4 +1,4 @@
-PROJECT (libsolv)
+PROJECT (libsolv C)
 
 CMAKE_MINIMUM_REQUIRED (VERSION 2.8.5)
 
index f01c02384ba2cb3ba57f0792cd51a4e612fae3b5..589fa9469f9bf1c67d93e107a3472e9c88d0d882 100644 (file)
@@ -103,6 +103,7 @@ IF (ENABLE_CUDFREPO)
 ENDIF (ENABLE_CUDFREPO)
 
 IF (ENABLE_HAIKU)
+    enable_language(CXX)
     SET (libsolvext_SRCS ${libsolvext_SRCS}
        repo_haiku.cpp)
     SET (libsolvext_HEADERS ${libsolvext_HEADERS}