[cfe-commits] [PATCH] Build PrintFunctionNames
Cédric Venet
cedric.venet at laposte.net
Mon Nov 16 10:01:33 PST 2009
Le 16/11/2009 18:42, Daniel Dunbar a écrit :
> Hi Kovarththanan,
>
> I'd like to add this in a way so it doesn't get automatically built by
> default (just like with the Makefiles I require BUILD_EXAMPLES=1 to
> build the examples). I plan on adding more examples as the
> clang/clang-cc integration work proceeds, and I don't want to most
> developers time by having them built.
>
> Do you know how to do this in CMake?
>
>
you can do something like this:
OPTION(COMPILE_TRUC "Enable the compilation of the truc package" OFF)
IF(COMPILE_TRUC)
add_subdirectory(truc)
ENDIF(COMPILE_TRUC)
I use this macro myself:
MACRO(ADD_PROJECT dir pseudo default)
OPTION(COMPILE_${pseudo} "Enable the compilation of the ${dir} package"
${default})
IF(COMPILE_${pseudo})
add_subdirectory(${dir})
ENDIF(COMPILE_${pseudo})
ENDMACRO(ADD_PROJECT)
> - Daniel
>
> On Sun, Nov 15, 2009 at 12:54 AM, Kovarththanan Rajaratnam
> <kovarththanan.rajaratnam at gmail.com> wrote:
>
>> Hey,
>>
>> This patch adds the newly introduced PrintFunctionNames into the CMake
>> build system.
>>
>> --
>> Best regards,
>> Kovarththanan Rajaratnam
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>>
>>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
More information about the cfe-commits
mailing list