[cmake-developers] Change default standard library implementation before used by compiler ?
Jean-Christophe Fillion-Robin
jchris.fillionr at kitware.com
Tue Jan 14 16:14:44 EST 2014
Hi Folks,
For both Slicer and SimpleITK, there is currently no support for the clang
c++ standard library new implementation [1] that is now used by default on
Maverick.
It means that we currently expect our users to build the project by passing
the flag:
-DCMAKE_CXX_FLAGS_INIT:STRING=-stdlib=libstdc++
as explained in [2]
To allow our users to build without explicitly passing flag, what would be
recommended approach ?
I was thinking about the following and would like to get your inputs /
suggestions:
1) Add a compile test so that the flag could be updated before the first
call to "project()/enable_langage()". Is this possible ?
2) Wrap the project into a superbuild structure ... that could work but
would be a ugly hack.
Thanks for your help,
Jc
[1] http://libcxx.llvm.org/
[2]
http://slicer-devel.65872.n3.nabble.com/Mavericks-with-SimpleITK-tt4030687.html
--
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140114/aaf8d536/attachment.html>
More information about the cmake-developers
mailing list