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: [email protected] [mailto:[email protected]] On Behalf Of 
Hashim Mir
Sent: March-02-12 3:05 PM
To: [email protected]
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.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to