[CMake] COMPILE_DEFINITIONS as global property

Andrea Galeazzi galeazzi at korg.it
Mon Jun 24 06:07:08 EDT 2013


Hi all,
I've got few main projects with a lot of sub projects (calling 
add_subdirectory). I'd like to compile each sub project defining some 
macros dependent by the main project. I noticed that COMPILE_DEFINITIONS 
is not a global property, so, in your opinion, what's the best approach 
to solve this problem?

Regards


More information about the CMake mailing list