0

I am trying to build a project using cmake with clang compiler.

I have already got the build working using xcode, where I am importing linker dependencies from MacOS frameworks like CoreFramework, Foundation etc. When I look at the linker command Xcode is using internally, I see that it is using

 - framework CoreFoundation 
 - framework Foundation

Question: How to I port these linker to Cmake?

Example: When I am using lib libxxx.a, libyyy.a in the probject, xcode refers to those libraries as

-lxxx -lyyy

the corrosponding linker commands for cmake is simply:

target_linked_libraries(project xxx yyy)

Paul Sanders
  • 24,133
  • 4
  • 26
  • 48
kishoredbn
  • 2,007
  • 4
  • 28
  • 47

0 Answers0