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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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