You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#907 was closed as fixed in r19b, but I can reproduce it in r19c and r20-beta-3.
CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
FILE(READ D:/projects/cm/src/test.txt TEST_FILE_CONTENTS)
message("contents of test.txt as read by FILE command: '${TEST_FILE_CONTENTS}'")
find_path(TEST test.txt PATHS D:/projects/cm/src)
message(FATAL_ERROR "TEST: ${TEST}")
Build with r19c
PS D:\Projects\cm> C:\DevTools\Android\sdk\cmake\3.10.2.4988404\bin\cmake.exe-HD:\Projects\cm\src -BD:\Projects\cm\build -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-18-DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=C:\DevTools\Android\sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_ARCH_ABI=x86_64 -DCMAKE_SYSTEM_VERSION=18-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_ANDROID_NDK=C:\DevTools\Android\sdk\ndk-bundle -DCMAKE_TOOLCHAIN_FILE=C:\DevTools\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -G Ninja -DCMAKE_MAKE_PROGRAM=C:\DevTools\Android\sdk\cmake\3.10.2.4988404\bin\ninja.exe-- Check for working C compiler: C:/DevTools/Android/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe-- Check for working C compiler: C:/DevTools/Android/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/DevTools/Android/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
-- Check for working CXX compiler: C:/DevTools/Android/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
contents of test.txt as read by FILE command: 'Hello from test.txt.'
CMake Error at CMakeLists.txt:7 (message):
TEST: TEST-NOTFOUND
Build with r20-beta-3
PS D:\Projects\cm> C:\DevTools\Android\sdk\cmake\3.10.2.4988404\bin\cmake.exe-HD:\Projects\cm\src -BD:\Projects\cm\build -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-18-DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=C:\DevTools\Android\sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_ARCH_ABI=x86_64 -DCMAKE_SYSTEM_VERSION=18-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_ANDROID_NDK=C:\DevTools\Android\sdk\ndk-bundle -DCMAKE_TOOLCHAIN_FILE=C:\DevTools\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -G Ninja -DCMAKE_MAKE_PROGRAM=C:\DevTools\Android\sdk\cmake\3.10.2.4988404\bin\ninja.exe^C
PS D:\Projects\cm> ^C
PS D:\Projects\cm> ^C
PS D:\Projects\cm> C:\DevTools\Android\sdk\cmake\3.10.2.4988404\bin\cmake.exe-HD:\Projects\cm\src -BD:\Projects\cm\build -DANDROID_ABI=x86_64 -DANDROID_PLATFORM=android-18-DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=C:\DevTools\Android\sdk\android-ndk-r20-beta3 -DCMAKE_CXX_FLAGS=-DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_ARCH_ABI=x86_64 -DCMAKE_SYSTEM_VERSION=18-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_ANDROID_NDK=C:\DevTools\Android\sdk\android-ndk-r20-beta3 -DCMAKE_TOOLCHAIN_FILE=C:\DevTools\Android\sdk\android-ndk-r20-beta3\build\cmake\android.toolchain.cmake -G Ninja -DCMAKE_MAKE_PROGRAM=C:\DevTools\Android\sdk\cmake\3.10.2.4988404\bin\ninja.exe-- Check for working C compiler: C:/DevTools/Android/SDK/android-ndk-r20-beta3/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe-- Check for working C compiler: C:/DevTools/Android/SDK/android-ndk-r20-beta3/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/DevTools/Android/SDK/android-ndk-r20-beta3/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
-- Check for working CXX compiler: C:/DevTools/Android/SDK/android-ndk-r20-beta3/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
contents of test.txt as read by FILE command: 'Hello from test.txt.'
CMake Error at CMakeLists.txt:7 (message):
TEST: TEST-NOTFOUND-- Configuring incomplete, errors occurred!
See also "D:/Projects/cm/build/CMakeFiles/CMakeOutput.log".
Works with non crosscompile cmake-3.14.4
PS D:\Projects\cm> cmake --version
cmake version 3.14.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
PS D:\Projects\cm> cmake -HD:\Projects\cm\src -BD:\Projects\cm\build
-- Building for: Visual Studio 162019-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763.
-- The C compiler identification is MSVC 19.21.27702.2-- The CXX compiler identification is MSVC 19.21.27702.2-- Check for working C compiler: C:/DevTools/Visual Studio/2019 Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe-- Check for working C compiler: C:/DevTools/Visual Studio/2019 Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/DevTools/Visual Studio/2019 Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe-- Check for working CXX compiler: C:/DevTools/Visual Studio/2019 Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
contents of test.txt as read by FILE command: 'Hello from test.txt.'
CMake Error at CMakeLists.txt:7 (message):
TEST: D:/Projects/cm/src
-- Configuring incomplete, errors occurred!
See also "D:/Projects/cm/build/CMakeFiles/CMakeOutput.log".
The text was updated successfully, but these errors were encountered:
Hello,
#907 was closed as fixed in r19b, but I can reproduce it in r19c and r20-beta-3.
CMakeLists.txt
Build with r19c
Build with r20-beta-3
Works with non crosscompile cmake-3.14.4
The text was updated successfully, but these errors were encountered: