[CMake] seeking advice for building and testing variants

Tamás Kenéz tamas.kenez at gmail.com
Wed Jan 27 16:24:15 EST 2016


You can build the N variants from the same CMakeLists.txt in a single
directory.

On Wed, Jan 27, 2016 at 3:24 PM, Vania Joloboff <vania.joloboff at inria.fr>
wrote:

> Hi
>
> We have a library that we want to build with N different variants
>  in the compile flags for the same source code.
> Then in the test phase, I want to build N versions of a benchmark
> linked with the N versions of the library, then run the benchmark
> and compare.
>
> I can create N subdirectories (one for each variant) in my source dir
> with a CMakeLists.txt in each directory that will set  the compile flags
> for that variant and build the benchmark for that variant.
>  I will get N build directories.
>
> Is this the 'recommended' way of doing in this case,
> or there would be a smarter way ?
>
> Vania
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160127/5649c4ca/attachment.html>


More information about the CMake mailing list