Hi,
What do you think of the following patch:
(pasted with quotes so that thunderbird wouldn't mess it up)
> diff --git a/Core/CppMicroServices/CMake/usFunctionGenerateModuleInit.cmake
> b/Core/CppMicroServices/CMake/usFunctionGenerateModuleInit.cmake
> index e02cb83..7c330f8 100644
> --- a/Core/CppMicroServices/CMake/usFunctionGenerateModuleInit.cmake
> +++ b/Core/CppMicroServices/CMake/usFunctionGenerateModuleInit.cmake
> @@ -48,7 +48,7 @@ function(usFunctionGenerateModuleInit src_var)
> set(module_init_src_file
> "${CMAKE_CURRENT_BINARY_DIR}/${US_MODULE_LIBRARY_NAME}_init.cpp")
> configure_file(${CppMicroServices_MODULE_INIT_TEMPLATE}
> ${module_init_src_file} @ONLY)
>
> - set(_src ${${src_var}} ${module_init_src_file})
> + set(_src ${module_init_src_file} ${${src_var}})
> set(${src_var} ${_src} PARENT_SCOPE)
>
> endfunction()
It moves the MITK_CREATE_MODULE-generated *_init.cpp to the front of the
source file list. This is helpful for me because I'm using
https://github.com/sakra/cotire for precompiled-header support in our
MITK-based application. Something simple like
MITK_CREATE_MODULE(myModule
...
)
if (MYPROJECT_USE_COTIRE AND COMMAND cotire)
cotire(myModule)
endif()
enables precompiled headers on myModule. This makes it compile much
faster. And esp the incremental change/compile/debugging cycle is
blazingly fast.
But cotire picks the very first source file to trigger PCH generation.
If I'm unlucky and I'm hacking away at this file, the code/test cycle is
terribly slow. Instead, generated boilerplate is the prime candidate for
PCH generation because I will never change it.
Any thoughts?
Johannes
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users