[CMake] Filenames becomes too big on windows (VS10)

Martin Nielsen Martin.Nielsen at csr.com
Tue Jan 4 07:44:42 EST 2011


Hi All

 

I'm curently facing an issue with filenames becoming too big with the
Visual Studio 10 generator. Doing the compilation of our source code I
get the following errors:

 

"C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\Synergy.sln" (default target) (1) ->
"C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\.\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\bt\profile_managers\core_stack\common\bluestack\dmlib\csr_bt_corest
ack_bluestack_dmlib.vcxproj.metaproj" (default target) (172) ->
"C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\bt\profile_managers\core_stack\common\bluestack\dmlib\csr_bt_corest
ack_bluestack_dmlib.vcxproj" (default target) (173) ->
(ClCompile target) -> 
  c1 : fatal error C1083: Cannot open source file:
'..\..\..\..\..\..\..\..\bt\profile_managers\core_stack\common\bluestack
\dmlib\dmlib_hci_read_inquiry_response_tx_power_level_req.c': No such
file or directory
[C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\bt\profile_managers\core_stack\common\bluestack\dmlib\csr_bt_corest
ack_bluestack_dmlib.vcxproj]
  c1 : fatal error C1083: Cannot open source file:
'..\..\..\..\..\..\..\..\bt\profile_managers\core_stack\common\bluestack
\dmlib\dmlib_hci_ulp_read_advertising_channel_tx_power_req.c': No such
file or directory
[C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\bt\profile_managers\core_stack\common\bluestack\dmlib\csr_bt_corest
ack_bluestack_dmlib.vcxproj]
  c1 : fatal error C1083: Cannot open source file:
'..\..\..\..\..\..\..\..\bt\profile_managers\core_stack\common\bluestack
\dmlib\dmlib_sm_generate_nonresolvable_private_address_req.c': No such
file or directory
[C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no
_log\bt\profile_managers\core_stack\common\bluestack\dmlib\csr_bt_corest
ack_bluestack_dmlib.vcxproj]

 

I figured that the tool combines the path of the project with the
relative path of the filename located in the project file resulting in
this filename:

 

C:\bs-vs2010\synergy-main-winnt-x86-vs10\build\install\no_log\output\no_
log\bt\profile_managers\core_stack\common\bluestack\dmlib\..\..\..\..\..
\..\..\..\bt\profile_managers\core_stack\common\bluestack\dmlib\dmlib_hc
i_ulp_read_advertising_channel_tx_power_req.c

 

I assume the failure is due to the 260 bytes filename length limitation
within Windows.

 

Would it be possible to direct CMake to use absolute filenames in the
project files instead of the relative path? 

 

Or could this be caused by something else?

 

Med venlig hilsen / Best Regards

 

Martin Nielsen

 



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110104/0e703bc7/attachment.htm>


More information about the CMake mailing list