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()