From 7cf676efbb07888d822eebf411961370c68f90c4 Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Tue, 8 Aug 2017 22:14:43 +0200 Subject: [PATCH] EXV_HAVE_STDINT_H needs to be defined to compile XMPSDK --- xmpsdk/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xmpsdk/CMakeLists.txt b/xmpsdk/CMakeLists.txt index 77d98bc8..d883f4d8 100644 --- a/xmpsdk/CMakeLists.txt +++ b/xmpsdk/CMakeLists.txt @@ -29,7 +29,15 @@ if(NOT MSVC) endif() IF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP ) + check_include_file( "stdint.h" EXV_HAVE_STDINT_H ) + ADD_LIBRARY( xmp STATIC ${XMPSRC} ) + + target_include_directories(xmp PRIVATE ${CMAKE_SOURCE_DIR}/xmpsdk/include) + if (EXV_HAVE_STDINT_H) + target_compile_definitions(xmp PRIVATE EXV_HAVE_STDINT_H) + endif() + GET_TARGET_PROPERTY( XMPLIB xmp LOCATION ) if ( NOT MSVC ) TARGET_LINK_LIBRARIES(xmp ${EXPAT_LIBRARIES})