[LLVMdev] Regarding CMake options for LLVM

Óscar Fuentes ofv at wanadoo.es
Sun Feb 13 07:11:09 PST 2011


nullnull <null.function at gmail.com> writes:

> Figuring out to insert new compiling options or changing some options are
> very hard for a CMake newbie. I'm working on Windows (both Visual Studio,
> MingW/MSYS) via CMake. In particular, I'd like to do following two things:
>
> (1) I'd like to add "-std=c++0x" for some files in
> lib\Transforms\Instrumentation. (I don't think it's good idea to put this
> option entirely)
> (2) I'd like to change intermediate directories for all libraries and tools.
> (The default is ***.dir) I tried to add some CMake options, but failed.
>
> The aboves are easy on Visual Studio. But, chaning CMake (minimally) is hard
> to do.

Those are generic CMake questions, not specifically related to LLVM. The
right place for asking those questions is the CMake mailing list.

Anyways, the answer to your first question involves
set_source_files_properties.



More information about the llvm-dev mailing list