Getting a CMake Error: Cannot specify link libraries for target which is not built by the project

后端 未结 4 1418
萌比男神i
萌比男神i 2020-11-29 10:59

I am implementing CMake in my code but I\'m getting the error

\"Cannot specify link libraries for target \"Qt5::Widgets\" which is not built by the p

4条回答
  •  孤独总比滥情好
    2020-11-29 11:35

    The first argument of target_link_libraries is the target name:

    target_link_libraries(eCAD Qt5::Widgets Qt5::Core) 
    

提交回复
热议问题