From 9f4c8cd730bba94f0c09cbef9b0cf9df44eb7b03 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 7 May 2024 12:29:25 +0100 Subject: [PATCH] cmake: Fix `check_arm32_assembly` when using as subproject --- cmake/CheckArm32Assembly.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/CheckArm32Assembly.cmake b/cmake/CheckArm32Assembly.cmake index 15c44b24b0..baeeff0292 100644 --- a/cmake/CheckArm32Assembly.cmake +++ b/cmake/CheckArm32Assembly.cmake @@ -1,6 +1,6 @@ function(check_arm32_assembly) try_compile(HAVE_ARM32_ASM - ${CMAKE_BINARY_DIR}/check_arm32_assembly - SOURCES ${CMAKE_SOURCE_DIR}/cmake/source_arm32.s + ${PROJECT_BINARY_DIR}/check_arm32_assembly + SOURCES ${PROJECT_SOURCE_DIR}/cmake/source_arm32.s ) endfunction()