"Unable to open check cache file for write." when building from a samba share on W10
Dear cmake developers,
thank you for the great tool!
I get this problem when building from a samba share on Windows 10:
Z:\buildtest\SidactCommon\build\Windows>c:\users\FNATTER\Downloads\cmake-3.11.3-win64-x64\bin\cmake.exe ..\..
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
CMake Error: Unable to open check cache file for write. Z:/buildtest/SidactCommon/build/Windows/CMakeFiles/CMakeTmp/CMakeFiles/cmake.check_cache
CMake Error at C:/Users/FNATTER/Downloads/cmake-3.11.3-win64-x64/share/cmake-3.11/Modules/Internal/FeatureTesting.cmake:33 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
C:/Users/FNATTER/Downloads/cmake-3.11.3-win64-x64/share/cmake-3.11/Modules/Internal/FeatureTesting.cmake:79 (_record_compiler_features)
C:/Users/FNATTER/Downloads/cmake-3.11.3-win64-x64/share/cmake-3.11/Modules/Compiler/MSVC-CXX.cmake:35 (_record_compiler_features_cxx)
C:/Users/FNATTER/Downloads/cmake-3.11.3-win64-x64/share/cmake-3.11/Modules/CMakeDetermineCompileFeatures.cmake:55 (cmake_record_cxx_compile_features)
C:/Users/FNATTER/Downloads/cmake-3.11.3-win64-x64/share/cmake-3.11/Modules/CMakeTestCXXCompiler.cmake:62 (CMAKE_DETERMINE_COMPILE_FEATURES)
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "Z:/buildtest/SidactCommon/build/Windows/CMakeFiles/CMakeOutput.log".
The directory "CMakeFiles\CMakeTmp" exists, but "CMakeFiles\CMakeTmp\CMakeFiles" does not exist.
--> so I tried to mkdir it before running cmake:
Z:\buildtest\SidactCommon\build\Windows>mkdir CMakeFiles\CMakeTmp\CMakeFiles
but cmake seems to delete it when starting up.
This does not occur when building on W7 from the share or when building locally on W10.
Do you have any idea what could cause this?
Many Thanks and Best Regards,
Felix