[CMake] Absolute output path
jean-daniel.michaud at uk.bnpparibas.com
jean-daniel.michaud at uk.bnpparibas.com
Tue Mar 25 05:24:27 EDT 2008
Hi,
I am trying to force cmake to output object files to an specific absolute
path.
I have tried setting the project_name_BINARY_DIR, the CMAKE_BINARY_DIR
and CMAKE_CURRENT_BINARY_DIR like:
PROJECT (foo)
SET(CMAKE_CURRENT_BINARY_DIR "/home/jd/project/foo/build_output/")
SET(CMAKE_BINARY_DIR "/home/jd/project/foo/build_output/")
SET(foo_BINARY_DIR "/home/jd/project/foo/build_output/")
but no luck, cmake still output the object files to it's own folder tree
like:
[ 0%] Building CXX object
foo/source/CMakeFiles/Referential.dir/home/jd/project/foo/build_output/bar.o
For reason specific to my project, I really need cmake to forget this
CMakeFiles/Referential.dir and output object where instruct him to do.
Hacking cmake source code is where I stand now, any way to do that with
some variable in the CMakeLists.txt file?
Thanks and Regards,
Jean-Daniel
This communication is confidential, may be privileged and is meant only for the intended recipient. If you are
not the intended recipient, please notify the sender by reply and delete this message from your system. Any
unauthorised dissemination, distribution or copying hereof is prohibited.
BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited,
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by
the Financial Services Authority.
BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI
and AMF. BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK
business. BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.
More information about the CMake
mailing list