The line I use oatpp is target_link_libraries(myproject oatpp) (this line works), but fail if changed to target_link_libraries(myproject oatpp oatpp-swagger) , and the cause is when configuring the oatpp-swagger.
Error while configuring:
[cmake] Finding oatpp in location=INSTALLED
[cmake] CMake Error at build/_deps/oatpp-swagger-src/CMakeLists.txt:42 (get_target_property):
[cmake] get_target_property() called with non-existent target "oatpp::oatpp".
[cmake]
Problem with cmake FetchContent_* both oatpp-swagger and oatpp.
If I use FetchContent_* to install oatpp solely, it works. Then if I add another FetchContent for oatpp-swagger, it fails.
The one for importing oatpp:
The line I use oatpp is
target_link_libraries(myproject oatpp)
(this line works), but fail if changed totarget_link_libraries(myproject oatpp oatpp-swagger)
, and the cause is when configuring the oatpp-swagger.Error while configuring: