> An improvement in the API (although maybe not perfect):
>
> target_precomplied_header(<target>
> [PREFIX <path/to/prefix_header.h>]
> [FROM
> <other_target_to_share_precomplied_header_with>])
>
> This way we do not need to specify all the targets to shared the
> precompiled header with at one time and in one call.
You mean we can specify header for multiple targets in one call?
So maybe such one:
target_precompiled_header(<target> [...]
<path/to/prefix_header.h>
[REUSE
[<target_precomplied_header_is_reuse_from>]]
[TYPE <shared_header_type>])
I don't like PREFIX word, since this maybe misleading since in other places it
means a path prefix. So I would leave it as last non-optional parameter.
I agree SHARED maybe confusing, so maybe we can call it REUSE? And then if they
are multiple targets, one may specify REUSE without value, i.e.:
target_precompiled_header(app lib1 lib2 src/prefix.h REUSE)
Which is equal to:
target_precompiled_header(app src/prefix.h)
target_precompiled_header(lib1 src/prefix.h REUSE app)
target_precompiled_header(lib2 src/prefix.h REUSE app)
WDYT?
-- Adam
--
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-developers