When building ACE/TAO on Windows, it seems to fail if the path has a space:
16>Invoking ""..\..\..\bin\tao_idl" on StringValue.pidl"
16>TAO
16>c1 : fatal error C1083: Cannot open source file: 'Hornsey\OpenDDS\ACE_wrappers\TAO': No such file or directory
16>tao
16>c1 : fatal error C1083: Cannot open source file: 'Hornsey\OpenDDS\ACE_wrappers\TAO\tao': No such file or directory
16>orbsvcs
16>c1 : fatal error C1083: Cannot open source file: 'Hornsey\OpenDDS\ACE_wrappers\TAO\orbsvcs': No such file or directory
16>tao-idli_oeXD0X.cpp
16>..\..\..\bin\tao_idl: preprocessor "CL.EXE" returned with an error
16>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'StringValue.pidl' exited with code 1.
16>Done building project "Valuetype_Idl.vcxproj" -- FAILED.
Adding -v to the tao_idl to enable this debug message results in this CL command:
When building ACE/TAO on Windows, it seems to fail if the path has a space:
Adding
-v
to thetao_idl
to enable this debug message results in this CL command:1>..\..\..\bin\tao_idl: spawning: CL.EXE -D__TAO_IDL=0x060521 -I. "-I"C:\Users\Fred Hornsey\OpenDDS\ACE_wrappers\TAO"" "-I"C:\Users\Fred Hornsey\OpenDDS\ACE_wrappers\TAO\tao"" -nologo -E -I..\.. -D__TAO_IDL_IDL_VERSION=0x030000 -D__TAO_IDL_FEATURES=\"tao/idl_features.h\" "-I"C:\Users\Fred Hornsey\OpenDDS\ACE_wrappers\TAO\orbsvcs"" -Iunused -Iunused\ciao -Iunused\ccm C:\Users\FREDHO~1\AppData\Local\Temp\tao-idli_OkJJOw.cpp
This code looks like what supposed handle it:
https://github.com/DOCGroup/ACE_TAO/blob/7e9961ffbe46a14c799a99da7cc57e1963bbf512/TAO/TAO_IDL/driver/drv_preproc.cpp#L180-L190