cmake mailing list captcha
This issue has been re-purposed to discuss a problem subscribing to the mailing list. See details for original question:
Subject:How to specify the path of a library generated in add_subdirectory?
Dear all,
I need to link some static libraries generated in add_subdirectory into one. I specified the path to put the libraries, for example, 'libpath'. However, after built the whole solution, the libraries are put into ${libpath}/Debug or ${libpath}/Release when the solution are built in Debug or Release mode. So how to specify correct path for generated libraries? I use ${libpath}/${CMAKE_BUILD_TYPE}
but it doesn't work since it is not set in Cmake file.
Thanks, Tang Laoya
Edited by Brad King