[CMake] Visual Studio 2010 generator and custom command
elizabeta petreska
elizabeta.petreska at gmail.com
Thu Sep 30 08:14:47 EDT 2010
This works. Thanks. Save me from a lot of trouble.
On Wed, Sep 29, 2010 at 11:07 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
> On 9/29/2010 11:02 AM, elizabeta petreska wrote:
>
>> This is the link to bug report
>> http://www.paraview.org/Bug/view.php?id=11274
>>
>>
> OK, I have fixed the issue in CMake next.
>
> To get around the problem you can use MAIN_DEPENDENCY like this:
>
>
> ADD_CUSTOM_COMMAND(
> OUTPUT "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt"
> COMMAND ${CMAKE_COMMAND} -E copy
> "${PROJECT_SOURCE_DIR}/myfile.txt"
> "${PROJECT_BINARY_DIR}/$(ConfigurationName)/generated.txt"
> DEPENDS "${PROJECT_SOURCE_DIR}/myfile.txt"
> MAIN_DEPENDENCY "${PROJECT_SOURCE_DIR}/myfile.txt"
>
> )
>
> -Bill
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100930/d307e8ad/attachment.htm>
More information about the CMake
mailing list