[CMake] Customizing the output directory

Hashim Mir hmir at rim.com
Fri Mar 2 15:18:01 EST 2012


Hi,

Nevermind, I found out how its done.

The code I mentioned earlier is overridden by the top level cmakelist's add_subdirectory path. A quick change to the top level add_subdirectory command changes it.

Thanks,
Hashim

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Hashim Mir
Sent: March-02-12 3:05 PM
To: cmake at cmake.org
Subject: [CMake] Customizing the output directory

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.

---------------------------------------------------------------------
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/83a4b5df/attachment-0001.htm>


More information about the CMake mailing list