Merge pull request #2640 from robUx4/xml-uuid

[cmake] add uuid library when using xmllite

(cherry picked from commit 6389d172ed)
This commit is contained in:
Tim Kientzle authored and Martin Matuska committed 2025-05-31 21:25:32 +02:00
1 parent 6445be4ea6
commit ebbd18c365
1 file changed
+2 -2
+2 -2
View File
@@ -1257,7 +1257,7 @@ ELSE(LIBXML2_FOUND)
# Check linkage as well; versions of mingw-w64 before v11.0.0
# do not contain an import library for xmllite.
cmake_push_check_state()
SET(CMAKE_REQUIRED_LIBRARIES "xmllite")
SET(CMAKE_REQUIRED_LIBRARIES "xmllite" "uuid")
check_c_source_compiles("
#include <initguid.h>
#include <xmllite.h>
@@ -1268,7 +1268,7 @@ ELSE(LIBXML2_FOUND)
cmake_pop_check_state()
IF(HAVE_XMLLITE_H)
SET(XMLLITE_FOUND TRUE)
LIST(APPEND ADDITIONAL_LIBS "xmllite")
LIST(APPEND ADDITIONAL_LIBS "xmllite" "uuid")
ENDIF()
ENDIF()
ENDIF(EXPAT_FOUND)