On 12/02/2014 17:38, Sascha Zelzer wrote: > Hi Johannes, > > sounds interesting. I applied your patch > (http://bugs.mitk.org/show_bug.cgi?id=17186) to the MITK master.
Awesome, thanks! I hope there wont be any side effects :) Only tested it on windows... > Besides, we are always interested in these kind of stories and > experience sharing! > > Thanks, > Sascha > > > http://bugs.mitk.org/show_bug.cgi?id=17186 > > On 02/12/2014 05:24 PM, Johannes Totz wrote: >> 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 > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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
