CMAKE cannot find ftxui installed via AUR? #971
-
I am pretty new to c++ and im trying to follow https://arthursonzogni.github.io/FTXUI/index.html#build-cmake-find-package this tutorial but i cant get passed the cmake bit. I have installed ftxui through the AUR and heres my setup
I paste CMakeLists.txt
then i do
and then i get this cmake error
Can it not find the package? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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, im not sure why cmake doesnt find it. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
The error:
Means you need to declare the language of your project. This means you need to swap the order of the lines: find_package(ftxui 5 REQUIRED)
project(ftxui-starter LANGUAGES CXX VERSION 1.0.0) |
Beta Was this translation helpful? Give feedback.
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, …