Closed Tyrben closed 2 years ago
Ok, the solution is very simple, so please correct the help on top of the CMakeLists.txt
add_subdirectory( <path-to-lyra> )
OK
but target_link_libraries( <my-exe/lib> PUBLIC bfg::lyra )
No, there are 2 mistakes
PUBLIC
, but LINK_PUBLIC
bfg::lyra
but bfg::Lyra
resulting on target_link_libraries( <my-exe/lib> LINK_PUBLIC bfg::Lyra )
I sticked to the instructions written in your
CMakeLists.txt
which are:add_subdirectory( <path-to-lyra> )
- checkedadd_subdirectory(vendor/Lyra-master ./liblyra)
target_link_libraries( <my-exe/lib> PUBLIC bfg::lyra )
- checkedtarget_link_libraries(ao-avalonian-roads-gps LINK_PUBLIC bfg::lyra)
On windows, I get the late link error
Sure, the directory where the lib should be is empty (in my case build\liblyra\Debug).
Is Lyra supposed to build just by adding the add_subdirectory? Because it has its own .sln... which could be a problem I guess.
More info incomming from Linux: