You could call CMAKE_USER_MAKE_RULES_OVERRIDE before the first project
call. Than have that override file set the CXX_INIT flags based on the
compiler/OS/current flags.

On Tue, Jan 14, 2014 at 4:14 PM, Jean-Christophe Fillion-Robin <
jchris.filli...@kitware.com> wrote:

> 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
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>
-- 

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to