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

How to split VCXPROJ into two projects using notepad or whatever to avoid a build mis-behavior.

$
0
0

Due to a problem described here I suspect I need to edit my project file and make one for CUDA compiles and another for regular C++ "CL" compiles.  I do not see a way to use the IDE so looks like notepad is the tool.

The existing solution has two projects:  "app_cu.vcxproj" for a static library and "app_cpp.vcproj" for the executable  The problem project is the cpp one.  The files all end in .cpp (unlike the app_cu) but some of the files needs to be compiled with NVCC, not just CL.

This is not my project, I am just porting.  All the code compiles just fine in Linux with NVCC for the CU and g++ for the cpp files.  Unaccountably, the VS2013 compiler CL cannot handle some of the cpp files as they include headers used in the .cu files.  I can compile them using NVCC and it seems I must split off those using CLcompile from the CUDAcompile and want to know how to do this.

I can copy and past the app_cpp.vcproj and then edit so there is no mix of CUDA and CL.  In the XML, I  can change the name of the project but what do I do with the GUIDs and other identifiers?  Can I leave them the same or change a couple of characters so they are different.  

I assume this will work.  Maybe there is an IDE switch to force the compilations.  They all compile OK, I just have to manually click on each on to compile.  Have not gotten to the part where the link occurs so maybe a problem there.




Viewing all articles
Browse latest Browse all 2763

Trending Articles



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