On 13.05.2011 09:43, Kornel Benko wrote:
Am Donnerstag, 12. Mai 2011 schrieb kuem...@lyx.org:
Modified: lyx-devel/trunk/CMakeLists.txt
===========================================================================
=== --- lyx-devel/trunk/CMakeLists.txt      Thu May 12 23:48:11
2011        (r38731) +++ lyx-devel/trunk/CMakeLists.txt      Thu May 12
23:55:24 2011        (r38732) @@ -340,7 +340,9 @@
         # find getext when configuring
         list(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBINTL_LIBRARIES})
         # on mac use iconv also form ports
-       get_filename_component(ICONV_RELATIVE_TO_LIBINTL ${LIBINTL_LIBRARIES} 
PATH)
+       if(DEFINED LIBINTL_LIBRARIES)
+               get_filename_component(ICONV_RELATIVE_TO_LIBINTL
${LIBINTL_LIBRARIES} PATH)
+       endif()
  else()
         if(LYX_NLS)
                 add_subdirectory(intl "${TOP_BINARY_DIR}/intl")

Shouldn't be
         list(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBINTL_LIBRARIES})
inside the
         if(DEFINED LIBINTL_LIBRARIES)
?

        Kornel


Yes, thanks. I've fixed two issues, but the final patch could be merged.

Peter

Reply via email to