Re: [CMake] unexpected behavior with TARGET_FILE_DIR and Visual Studio 2010

2014-12-06 Thread Stephen Kelly
Michael Ellery wrote: > Can anyone offer advice? Is this how the visual studio generator works or > is this possibly a bug in CMake? I'm not very familiar with that generator. It looks like a bug to me too though. Thanks, Steve. -- Powered by www.kitware.com Please keep messages on-topic

[CMake] unexpected behavior with TARGET_FILE_DIR and Visual Studio 2010

2014-12-05 Thread Michael Ellery
Hi cmake-users, I have the following setup: CMAKE: 3.0.2 Visual Studio 2010 In one of my cmake files, I’m trying to create a preprocessor definition based on the TARGET_FILE_DIR of a different target … so I’m trying this: target_compile_definitions(my_target_B PUBLIC -DTARGET_A_DIR="$" )