diff options
Diffstat (limited to 'src/third_party/wiredtiger/build_cmake/toolchains/x86/darwin/plat_gcc.cmake')
-rw-r--r-- | src/third_party/wiredtiger/build_cmake/toolchains/x86/darwin/plat_gcc.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/build_cmake/toolchains/x86/darwin/plat_gcc.cmake b/src/third_party/wiredtiger/build_cmake/toolchains/x86/darwin/plat_gcc.cmake index 8ec2f561e54..7a463e46d96 100644 --- a/src/third_party/wiredtiger/build_cmake/toolchains/x86/darwin/plat_gcc.cmake +++ b/src/third_party/wiredtiger/build_cmake/toolchains/x86/darwin/plat_gcc.cmake @@ -9,6 +9,6 @@ # We are not cross-compiling if our system is Darwin, hence the "x86_64-apple-darwin-" # prefix is not necessary when we are not cross-compiling. Just default to the host # installed 'gcc' binary. -if (NOT "${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin") - set(CROSS_COMPILER_PREFIX "x86_64-apple-darwin-" CACHE INTERNAL "" FORCE) +if(CMAKE_CROSSCOMPILING) + set(CROSS_COMPILER_PREFIX "x86_64-apple-darwin-") endif() |