[CMake] File-specific build directives
Michael Wild
themiwi at gmail.com
Wed Jul 15 08:16:26 EDT 2009
On 15. Jul, 2009, at 13:56, eblotml at free.fr wrote:
> Hi,
>
> What is the best way, in a CMakeLists.txt file, to define specific
> build directive(s) for one or more C/C++ files, while other files
> are built with the default directives?
>
> As an example, how to apply "-O2" for one or more files, while
> building the remaining file with "-Os"?
>
> TIA,
> Manu
Hi
cmake --help-command set_source_files_properties
Michael
More information about the CMake
mailing list