Hi Adam, Thank you for working on this! This would be a killer feature.
> I also want to suggest to put native precompiled header support somewhere > high on the TODO list and I propose this simple API for specifying > precompiled header for given target: > > target_precompiled_header(<target> <path/to/precompiled_header.h>) > > target_precompiled_header(<target> <path/to/precompiled_header.h> > SHARED > > <other_target_to_share_precompiled_header_with>) > I think the use of the "SHARED" specifier here should be avoided since SHARED is used in add_library, and it has a completely different meaning there. 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. Thanks, Matt -- 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