[CMake] Customizing the output directory

Hashim Mir hmir at rim.com
Fri Mar 2 15:04:56 EST 2012


Hi there,

I am trying to get Cmake to put generated files in a specific directory using the following code:



set(LIBRARY_OUTPUT_PATH
                ${PROJECT_BINARY_DIR}/x64
)

set(EXECUTABLE_OUTPUT_PATH
                ${PROJECT_BINARY_DIR}/x64
)



But it doesn't seem to be making any difference at all with respect to where the files are being generated...i

I should mention that I added the above code to, not the top level CMakeList file, but a lower down one. I have one large project consisting of multiple subprojects, and I am trying to change the output directory for one of these subprojects by adding this code to its CMakeListFile (but its not working though).

Thanks in advance,
Hashim

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120302/29a3d949/attachment.htm>


More information about the CMake mailing list