Remove system install interface "include"

When using installed ftxui with cmake find_package, cmake is unable to
configure ftxui::screen, and it complains about a path "/include" in its
INTERFACE_INCLUDE_DIRECTORIES. Removing the SYSTEM INSTALL_INTERFACE
from ftxui_set_options seems to fix the issue without causing any other
problems in building and using the library.
This commit is contained in:
Shriram Ravindranathan 2024-02-17 18:09:47 +05:30
parent f495ce029c
commit 9a707367b7
No known key found for this signature in database

View File

@ -30,11 +30,6 @@ function(ftxui_set_options library)
)
endif()
target_include_directories(${library} SYSTEM
INTERFACE
$<INSTALL_INTERFACE:include>
)
target_include_directories(${library}
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>