On 12/01/2010 03:45 PM, Gary%20G.%20Little%20%40%20comcast wrote:
> I have a Visual Studio 2010 solution and I am trying to set the
> Configuration Properties -> General -> Platform Toolset of one
> particular project to use V90 to allow this project to build with the VS
> 2008 tool set. I followed an older thread and tried this:
>
> set_target_properties(WindowsApplication${version} PROPERTIES
> PlatformToolset "V90")
>
> That results in an error: "set_target_properties Can not find target to
> add properties to". ${version} is set to a version string and the term
> WindowsApplication${version} is used later in the file by an
> "add_library" and a "target_link_library with no error. How can I set the
> platform toolset to V90 from CMAKE?
SET_TARGET_PROPERTIES() must not appear before the targets it
operates on, so move this command behind the ADD_LIBRARY().
Regards,
Michael
_______________________________________________
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