cmake: fix include bits/ not being installed

The file(EXISTS) command needs absolute paths.
This commit is contained in:
Lephenixnoir 2021-05-23 15:27:10 +02:00
parent d6f606fa5c
commit 24c6873429
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ install(TARGETS fxlibc DESTINATION lib/)
install(DIRECTORY include/ DESTINATION include PATTERN "target" EXCLUDE)
foreach(FOLDER IN LISTS TARGET_FOLDERS)
if(EXISTS include/target/${FOLDER}/)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/target/${FOLDER}")
install(DIRECTORY include/target/${FOLDER}/ DESTINATION include)
endif()
endforeach()