Hi Riccardo,
> Am 02.02.2021 um 15:22 schrieb Riccardo Mottola <[email protected]>:
>
> -- No useable C++ runtime found
>
>
> why doesn't it like my runtime library?
The crude way I’ve been debugging the C++ runtime detection (in my
Android/Windows endeavors) was by logging the output from try_compile() with
this change in CMakeLists:
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,7 +234,9 @@ function(test_cxx CXX_RUNTIME_NAME IS_STDLIB)
"${CMAKE_BINARY_DIR}/CMake"
"${CMAKE_CURRENT_LIST_DIR}/CMake"
test_cxx_runtime
- CMAKE_FLAGS "-DCXX_RUNTIME=${CXX_RUNTIME_LIB}"
${CXX_RUNTIME_FLAGS})
+ CMAKE_FLAGS "-DCXX_RUNTIME=${CXX_RUNTIME_LIB}"
${CXX_RUNTIME_FLAGS}
+ OUTPUT_VARIABLE TRY_COMPILE_OUTPUT)
+ message(WARNING ${TRY_COMPILE_OUTPUT})
if (USERUNTIME)
set(CXX_RUNTIME ${CXX_RUNTIME_LIB} PARENT_SCOPE)
else ()
This will show you the compiler/linker invocation for the test program and any
errors. Maybe that helps.
Frederik