From 24c6873429a4591bf11fc9c07cf451d46288f3be Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 23 May 2021 15:27:10 +0200 Subject: [PATCH] cmake: fix include bits/ not being installed The file(EXISTS) command needs absolute paths. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60f3334..a620ba0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()