Launching Visual Studio via msvc.bat looks outdated. I always forget to do it and I need to find our each time what are the parameters. We do not use it.
Have a look at
(there are only solution and project files)
We are using OCCTDef.vcxproj (open in any text editor) to define all CSF_ variables in one place. Each .vcxproj has line
which refers to it. This again is not visible in VS and has to be added directly.
This way the OCCT.sln can be opened directly and built right away. Notice we have moved the solution up where msvc.bat normally is.
We have also merged 32 bit into this single OCCT.sln, so, as normally a VS developer expects, just change the configuration.
I suggest making it official in Windows OCCT installer. It would save us and many others time on upgrading.
We also do some other replacements specific to our software. In Visual Studio's Find and replace dialogue we replace in adm\msvc\vc142\*.vcxproj :
This is to build the binaries where they are needed to avoid copying and any issues with debug info location, etc.
Inserting OCCTDef.vcxproj references can be done this way in a minute as well.