On 6/25/2011 11:40 AM, Gabriel Petrovay wrote:
(Using Cmake 2.8.4)


I think this was something I just fixed. There were some cases where the rule files were not be created. If you could post a small example I could take a look and see if it is fixed now.

Also, please try the most current RC for 2.8.5.

-Bill

On Sat, Jun 25, 2011 at 5:39 PM, Gabriel Petrovay
<gabipetro...@gmail.com <mailto:gabipetro...@gmail.com>> wrote:

    Hi,

    1. What is the rule file?
    2. What is the logic by which this file is generated?

    I have a list of src files that need to be generated, each by an
    ADD_CUSTOM_COMMAND

    in a FOREACH loop:

    FOREACH(SRC ${SRC_LIST})

    // no code here

    ADD_CUSTOM_COMMAND(...)

    // no code here

    ENDFOREACH(SRC)


    And all  BUT the first generated SRC files get a SRC.rule file in
    the same build directory? Why this?

    Moreover, if I look in the vcxproj file generated I see that the
    <CustomBuild> is slightly different for the first SRC in the list.

    The first <CustomBuild> elements (for the 1st item in SRC_LIST) has
    as "Include" attribute the relative path (from the current build
    dir) to the MAIN_DEPENDENCY.
    The rest <CustomBuild> elements (for the rest items in SRC_LIST)
    have as "Include" attribute the relative path (from the current
    build dir) to the SRC.rule file.

    Why is this?



    --
    MSc Gabriel Petrovay
    Mobile: +41(0)787978034 <tel:%2B41%280%29787978034>
    www.28msec.com <http://www.28msec.com>




--
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com <http://www.28msec.com>



_______________________________________________
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


--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
_______________________________________________
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