Revision: 40910
http://brlcad.svn.sourceforge.net/brlcad/?rev=40910&view=rev
Author: starseeker
Date: 2010-10-07 01:18:14 +0000 (Thu, 07 Oct 2010)
Log Message:
-----------
The LIBSTDCXX variable is used only in misc/pkgconfig/librt.pc.in (which
already includes LIBM anyway) and src/other/step. This test is somewhat
difficult to set up in CMake - the standard CHECK_LIBRARY routine won't do it -
and since it shouldn't be an issue anywhere except src/other/step remove it -
if step libraries need the LIBM option add it. Will have to set up an OpenBSD
system to check this out.
Modified Paths:
--------------
brlcad/branches/cmake/CMakeLists.txt
Modified: brlcad/branches/cmake/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/CMakeLists.txt 2010-10-07 00:50:51 UTC (rev
40909)
+++ brlcad/branches/cmake/CMakeLists.txt 2010-10-07 01:18:14 UTC (rev
40910)
@@ -677,19 +677,19 @@
BRLCAD_CHECK_LIBRARY(GEN gen basename)
# check if the standard c++ library links without checking for any particular
symbol
-# library is needed when linking c++ code against c code (e.g. openNURBS)
TODO Not sure
-# this is set up correctly.
-CHECK_LIBRARY_EXISTS(stdc++ main "" HAVE_STDCXX)
-IF(HAVE_STDCXX)
- RESOLVE_LIBRARIES(STDCXX_LIBRARY "-lstdc++")
- SET(STDCXX_LINKOPT "-lstdc++")
-ELSE(HAVE_STDCXX)
- CHECK_LIBRARY_EXISTS(stdc++ main "${M_LINNKOPT}" HAVE_STDCXX_M)
- IF(HAVE_STDCXX_M)
- RESOLVE_LIBRARIES(STDCXX_LIBRARY "-lstdc++ ${M_LINNKOPT}")
- SET(STDCXX_LINKOPT "-lstdc++ ${M_LINNKOPT}")
- ENDIF(HAVE_STDCXX_M)
-ENDIF(HAVE_STDCXX)
+# library is needed when linking c++ code against c code (e.g. openNURBS)
+#CHECK_LIBRARY_EXISTS(stdc++ main "" HAVE_STDCXX)
+#IF(HAVE_STDCXX)
+# RESOLVE_LIBRARIES(STDCXX_LIBRARY "-lstdc++")
+# SET(STDCXX_LINKOPT "-lstdc++")
+#ELSE(HAVE_STDCXX)
+# CHECK_LIBRARY_EXISTS(stdc++ main "${M_LINNKOPT}" HAVE_STDCXX_M)
+# IF(HAVE_STDCXX_M)
+# RESOLVE_LIBRARIES(STDCXX_LIBRARY "-lstdc++ ${M_LINNKOPT}")
+# SET(STDCXX_LINKOPT "-lstdc++ ${M_LINNKOPT}")
+# ENDIF(HAVE_STDCXX_M)
+#ENDIF(HAVE_STDCXX)
+FILE(APPEND ${CONFIG_H_FILE} "#define HAVE_STDCXX 1\n")
# *******************************************************************
# *** Check for Headers - Stage 4 of 9 ***
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits