Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Build skips over some perfectly good "CL" compiles but gets most of the "NVCC" compiles

$
0
0

VS2013 (sorry, not my choice) skips over a dozen files. I can click on each file and compile it just fine, just cant be done with "build".  I turned on diagnostics for the build log and saw the files listed but cannot make sense of the message

Target "ComputeCrtSDKReference" skipped, due to false condition; ('@(ClCompile)'!='' and
'$(WindowsAppContainer)'=='true' and '$(UseCrtSDKReference)' != 'false') was evaluated as
 ('..\db\schema_master.cpp;....bunch of skipped over cpp files...and 'false'=='true' and '' != 'false').

I looked at the .vcxproj file and spotted stuff like the following in several places:
  <ItemGroup>
    <ClCompile Include="..\db\schema_master.cpp" />
    <ClCompile Include="..\db\sqlblob.cpp" />
    <ClCompile Include="..\db\sqlrow.cpp" />
    <ClCompile Include="..\db\xml_util.cpp" />
    <CudaCompile Include="analyzeFuncs.cpp">

The "CudaCompile" was not skipped over, just the ones above it.  I suspect I need to put all the CL into one ItemGroup and all the NVCC into another.  Is theres any way to do this using the IDE and not notepad?

If I switch to VS2017 using something named multitarget (just read about it) could the newer VS2017 handle this?   I am very limited on what I can change in the source due to compatibility with other platforms and OS so cannot compile using VS2107 or later natively.

[EDIT] I used notepad to edit the VXPROJ and organized the two pair of ItemGroups I thought were causing the problem.  Did not make a difference  However I noticed that the two items groups were NOT in any ItemDefinitionGroup. Maybe that is the problem.  This is what I see and none of the CL items are compiled unless I click on them in the IDE and ask for a compilation.  Not sure how to fix this.

  </ItemDefinitionGroup>
  <ItemGroup>
     <CudaCompile Include="about a dozen of these.cpp" />
  </ItemGroup>
  <ItemGroup>
     <ClCompile Include="a bakers dozen of these.cpp" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
   <Import Project="$(CUDAPropsPath)\CUDA 10.2.targets" />
  </ImportGroup>
</Project>



Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>