]> granicus.if.org Git - taglib/commitdiff
this patch should make taglib build with the Sun Studio compiler (http://bugs.kde...
authorAlexander Neundorf <neundorf@kde.org>
Wed, 25 Nov 2009 18:45:13 +0000 (18:45 +0000)
committerAlexander Neundorf <neundorf@kde.org>
Wed, 25 Nov 2009 18:45:13 +0000 (18:45 +0000)
Alex

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1054212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

bindings/c/CMakeLists.txt

index 80e2884d14ce3fdf19265955f00e06a4bfdfc75c..a12adeaf0684c1e4127f8b35ddec73712fe7b2a3 100644 (file)
@@ -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