[CMake] Weird binary directory problem

Steven Van Ingelgem steven at vaningelgem.be
Wed Jun 3 14:59:11 EDT 2009


Yes, but only for the base-project, not for the project where I did an
"add_subdirectory" for...

2009/6/3 Tyler Roscoe <tyler at cryptio.net>:
> On Wed, Jun 03, 2009 at 01:09:09PM +0200, Steven Van Ingelgem wrote:
>> When I "make" it, it says:
>> Linking C executable ../../bin/file
>>
>> But the current binary directory is "build/externals/file", why does
>> it build in "../../bin"??
>>
>> How can I know in what directory the executable is being build? I
>> thought this was always in "CMAKE_CURRENT_BINARY_DIR"?
>
> Sounds like you must have overriden the default destination directory.
> Did you set EXECUTABLE_OUTPUT_PATH (or the related target property)?
>
> tyler
>


More information about the CMake mailing list