CMake imported library behaviour

前端 未结 1 1047
执念已碎
执念已碎 2020-12-03 11:20

I\'ve a strange problem with CMake.

I\'m importing Curl into my project, so I write for you a simplified summary of my CMakeLists.txt file.

AD

相关标签:
1条回答
  • 2020-12-03 11:31

    For a shared library, the IMPORTED_LOCATION must point to the DLL, not the import lib. See the documentation. You might also want to set the IMPORTED_IMPLIB property.

    BTW, CMake also has a find package for Curl; perhaps you could use that?

    0 讨论(0)
提交回复
热议问题