[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Ninja: It's ninja issue, or CMake problem?
From:       Loaden <loaden () gmail ! com>
Date:       2012-09-25 8:07:48
Message-ID: CAOCD=xB7tBgLbXMgGzwhRDf9fj-YRMavb0M2=_uB7BvXh9AjJw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I don't think so.
See:
function(add_msvc_precompiled_header target)

    set(pchBinaryFile ${CMAKE_CURRENT_BINARY_DIR}/${target}_pch.pch)

*    set_source_files_properties(${${${target}_PCH_SOURCE_VAR}} PROPERTIES*

*        COMPILE_FLAGS "/Yc\"${${target}_PCH_HEADER_FILE}\"
/Fp\"${pchBinaryFile}\""*

*        OBJECT_OUTPUTS ${pchBinaryFile}*

*    )*

    message(STATUS "[${target}] Precompiled binary is \"${pchBinaryFile}\"")

    set(${target}_PCH_BINARY_FILE ${pchBinaryFile}

        CACHE INTERNAL "Precompiled binary file"

    )

endfunction()



2012/9/25 Peter Kümmel <syntheticpp@gmx.net>

> Maybe by "accident". Which cmake command do you use to add the dependency?




-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen

[Attachment #5 (text/html)]

I don&#39;t think so.<br>See:<br><span \
style="color:#808000">function</span>(add_msvc_precompiled_header<span \
style="color:#c0c0c0"> </span>target) <pre \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="color:#c0c0c0">    </span><span \
style="color:#808000">set</span>(pchBinaryFile<span style="color:#c0c0c0"> \
</span><span style="color:#800000">${CMAKE_CURRENT_BINARY_DIR}</span>/<span \
style="color:#800000">${target}</span>_pch.pch)</pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span \
style="color:#c0c0c0">    </span><span \
style="color:#808000">set_source_files_properties</span>(${${<span \
style="color:#800000">${target}</span>_PCH_SOURCE_VAR}}<span style="color:#c0c0c0"> \
</span>PROPERTIES</b></pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span \
style="color:#c0c0c0">        </span>COMPILE_FLAGS<span style="color:#c0c0c0"> \
</span><span style="color:#008000">&quot;/Yc\&quot;${</span><span \
style="color:#800000">${target}</span><span \
style="color:#008000">_PCH_HEADER_FILE}\&quot;</span><span style="color:#c0c0c0"> \
</span><span style="color:#008000">/Fp\&quot;</span><span \
style="color:#800000">${pchBinaryFile}</span><span \
style="color:#008000">\&quot;&quot;</span></b></pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span \
style="color:#c0c0c0">        </span>OBJECT_OUTPUTS<span style="color:#c0c0c0"> \
</span><span style="color:#800000">${pchBinaryFile}</span></b></pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><b><span \
style="color:#c0c0c0">    </span>)</b></pre> <pre \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="color:#c0c0c0">    </span><span \
style="color:#808000">message</span>(STATUS<span style="color:#c0c0c0"> </span><span \
style="color:#008000">&quot;[</span><span style="color:#800000">${target}</span><span \
style="color:#008000">]</span><span style="color:#c0c0c0"> </span><span \
style="color:#008000">Precompiled</span><span style="color:#c0c0c0"> </span><span \
style="color:#008000">binary</span><span style="color:#c0c0c0"> </span><span \
style="color:#008000">is</span><span style="color:#c0c0c0"> </span><span \
style="color:#008000">\&quot;</span><span \
style="color:#800000">${pchBinaryFile}</span><span \
style="color:#008000">\&quot;&quot;</span>)</pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="color:#c0c0c0">    </span><span style="color:#808000">set</span>(<span \
style="color:#800000">${target}</span>_PCH_BINARY_FILE<span style="color:#c0c0c0"> \
</span><span style="color:#800000">${pchBinaryFile}</span></pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="color:#c0c0c0">        </span>CACHE<span style="color:#c0c0c0"> \
</span>INTERNAL<span style="color:#c0c0c0"> </span><span \
style="color:#008000">&quot;Precompiled</span><span style="color:#c0c0c0"> \
</span><span style="color:#008000">binary</span><span style="color:#c0c0c0"> \
</span><span style="color:#008000">file&quot;</span></pre>


<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="color:#c0c0c0">    </span>)</pre> <pre \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span \
style="color:#808000">endfunction</span>()</pre><br><br><div \
class="gmail_quote">2012/9/25 Peter Kümmel <span dir="ltr">&lt;<a \
href="mailto:syntheticpp@gmx.net" \
target="_blank">syntheticpp@gmx.net</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Maybe by &quot;accident&quot;. Which cmake command do you use \
to add the dependency?</blockquote></div><br><br clear="all">

<br>-- <br><div><span style="color:rgb(255,0,0)"><u><i>Please don&#39;t ask where I \
come from, It&#39;s a shame!</i></u></span><br>Best Regards</div> \
<div>Yuchen</div><div></div><br> <div></div>



--

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic