From d8af0d2eec833b8d0a31e171c4d79024fd845a76 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 6 Oct 2020 17:55:44 +0200 Subject: [PATCH] Stop creating a "build," directory This was a typo. CMake doesn't take comma-separated arguments, but if you do add the comma it tends to work, because it just takes that comma as part of the string. So if it takes a directory to work in, that it will then create, and you pass ${CMAKE_CURRENT_BINARY_DIR}, well, that might just create a "build," directory. --- cmake/ConfigureChecks.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index bf84050b2..28e4cda5e 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -227,7 +227,7 @@ endif() # Check if mbrtowc implementation attempts to encode invalid UTF-8 sequences # Known culprits: at least some versions of macOS (confirmed Snow Leopard and Yosemite) -try_run(mbrtowc_invalid_utf8_exit, mbrtowc_invalid_utf8_compiles, ${CMAKE_CURRENT_BINARY_DIR}, +try_run(mbrtowc_invalid_utf8_exit mbrtowc_invalid_utf8_compiles ${CMAKE_CURRENT_BINARY_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/checks/mbrtowc_invalid_utf8.cpp") IF ("${mbrtowc_invalid_utf8_compiles}" AND ("${mbrtowc_invalid_utf8_exit}" EQUAL 1)) SET(HAVE_BROKEN_MBRTOWC_UTF8 1)