Skip to content

CMAKE cannot find ftxui installed via AUR? #971

Answered by peperonnii
peperonnii asked this question in Q&A
Discussion options

You must be logged in to vote
CMakeLists.txt
cmake_minimum_required (VERSION 3.11)
 
include(FetchContent)
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
FetchContent_Declare(ftxui
  GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
  GIT_TAG main # Important: Specify a version or a commit hash here.
)
FetchContent_MakeAvailable(ftxui)
 
project(ftxui-starter LANGUAGES CXX VERSION 1.0.0)
add_executable(ftxui-starter src/main.cpp)
target_link_libraries(ftxui-starter
  PRIVATE ftxui::screen
  PRIVATE ftxui::dom
  PRIVATE ftxui::component # Not needed for this example.
)

Okay i tried it with fetch content and it built no issues.

The problem is with the installation of the ftxui package. i have it installed for sure, …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by peperonnii
Comment options

You must be logged in to vote
1 reply
@peperonnii
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants