[cmake-developers] FW: FW: Initial Attempt at Green Hill MULTI IDE Generator Support

Brad King brad.king at kitware.com
Wed Apr 8 09:21:32 EDT 2015


On 04/08/2015 01:20 AM, Geoffrey Viola wrote:
> Attached is a patch based off of the previous commit.

I get conflicts applying on commit ff7ecb92.  Please resolve.

> target_compile_options(${TARGET_NAME} PUBLIC
>     ":optionsFile=\"${ABS_PATH}/rel/path/filename\"")

The COMPILE_OPTIONS are supposed to be given flags exactly as
you'd like the tools to receive them, and CMake is supposed to
take care of the quoting.  This is different than the older
COMPILE_FLAGS value that is just a command line string.

Therefore I think you should be writing:

 target_compile_options(${TARGET_NAME} PUBLIC
     ":optionsFile=${ABS_PATH}/rel/path/filename")

which is expected to work even if there is a space in the ABS_PATH
value.

-Brad



More information about the cmake-developers mailing list