[libc][Obvious] Use full path with cmake's if(EXISTS ...).

That if(EXISTS ...) works only with full paths was missed in couple of
places a in recent cleanup.
This commit is contained in:
Siva Chandra Reddy 2020-06-10 15:06:50 -07:00
parent 351823fbf1
commit b622a255a3
2 changed files with 2 additions and 2 deletions

View file

@ -132,6 +132,6 @@ add_bzero(bzero MARCH native)
# Add all other relevant implementations for the native target.
# ------------------------------------------------------------------------------
if(EXISTS ${LIBC_STRING_TARGET_ARCH})
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_STRING_TARGET_ARCH})
include(${LIBC_STRING_TARGET_ARCH}/CMakeLists.txt)
endif()

View file

@ -1,5 +1,5 @@
add_libc_testsuite(libc_linux_tests)
if(EXISTS ${LIBC_TARGET_MACHINE})
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_MACHINE})
add_subdirectory(${LIBC_TARGET_MACHINE})
endif()