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