Browse Source

cmake: fix include bits/ not being installed

The file(EXISTS) command needs absolute paths.
master
Lephenixnoir 8 months ago
parent
commit
24c6873429
Signed by: Lephenixnoir GPG Key ID: 1BBA026E13FC0495
  1. 2
      CMakeLists.txt

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

Loading…
Cancel
Save