From: Alexander Neundorf Date: Wed, 25 Nov 2009 18:45:13 +0000 (+0000) Subject: this patch should make taglib build with the Sun Studio compiler (http://bugs.kde... X-Git-Tag: v1.6.2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b6ab180803cfba41cd984ca8ca60dd4dbb83126;p=taglib this patch should make taglib build with the Sun Studio compiler (http://bugs.kde.org/show_bug.cgi?id=215225) Alex git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1054212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/bindings/c/CMakeLists.txt b/bindings/c/CMakeLists.txt index 80e2884d..a12adeaf 100644 --- a/bindings/c/CMakeLists.txt +++ b/bindings/c/CMakeLists.txt @@ -37,8 +37,13 @@ IF(HAVE_CRUN_LIB) # the only game in town, the three available STLs -- Cstd, # stlport4 and stdcxx -- make this a mess. The KDE-Solaris # team supports stdcxx (Apache RogueWave stdcxx 4.1.3). - # - TARGET_LINK_LIBRARIES(tag_c stdcxx Crun) + + # According to http://bugs.kde.org/show_bug.cgi?id=215225 the library can have the following two names: + FIND_LIBRARY(ROGUEWAVE_STDCXX_LIBRARY NAMES stdcxx4 stdcxx) + IF(NOT ROGUEWAVE_STDCXX_LIBRARY) + MESSAGE(FATAL_ERROR "Did not find supported STL library (tried stdcxx4 and stdcxx)") + ENDIF(NOT ROGUEWAVE_STDCXX_LIBRARY) + TARGET_LINK_LIBRARIES(tag_c ${ROGUEWAVE_STDCXX_LIBRARY} Crun) ENDIF(HAVE_CRUN_LIB) SET_TARGET_PROPERTIES(tag_c PROPERTIES