On 2021-10-28 "T. Modes" <[email protected]> wrote:
> Andreas Metzler schrieb am Mittwoch, 27. Oktober 2021 um 19:01:35 UTC+2:
>> Does not seem to have worked, attaching the full log of the minimal 
>> testcase mentioned above. 


> thanks for testing, even if it does not work.
> Instead of further fiddling with my non-working approach I committed the 
> version with check_library_exists as you proposed.
> I hope it works now for you.

Hello,

Thank you, I just need to add the attached patch to make things work for
me.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/YX0xT7l/cUfgYaL6%40argenau.bebt.de.
Description: Fix pkg-config file contents and location.
Author: Andreas Metzler <[email protected]>
Origin: vendor
Last-Update: 2021-10-30

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -391,22 +391,22 @@
 
 # set some variables which are used in libpano13.pc.in
 set(prefix ${CMAKE_INSTALL_PREFIX})
 set(exec_prefix ${CMAKE_INSTALL_PREFIX})
 set(includedir ${CMAKE_INSTALL_PREFIX}/include)
-if(${CMAKE_INSTALL_LIBDIR})
+if(DEFINED CMAKE_INSTALL_LIBDIR)
   set(libdir "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
 else()
   set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
 endif()
 set(LIB_JPEG ${JPEG_LIBRARY})
 set(LIB_TIFF ${TIFF_LIBRARY})
 set(LIB_ZLIB ${ZLIB_LIBRARY})
 set(LIB_PNG ${PNG_LIBRARY})
 set(VERSION ${PACKAGE_VERSION})
 configure_file("${TOP_SRC_DIR}/libpano13.pc.in" "${CMAKE_BINARY_DIR}/libpano13.pc" @ONLY)
-IF(${CMAKE_INSTALL_LIBDIR})
+IF(DEFINED CMAKE_INSTALL_LIBDIR)
   install(FILES "${CMAKE_BINARY_DIR}/libpano13.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" COMPONENT libraries)
 else()
   install(FILES "${CMAKE_BINARY_DIR}/libpano13.pc" DESTINATION "lib/pkgconfig" COMPONENT libraries)
 endif()
 

Reply via email to