Barry Smith
Barry Smith

Reputation: 319

How do I tell CMake to compile source files without linking?

The title says it all. I want a way equivalent to adding the "-c" flag in GCC.

Upvotes: 0

Views: 1876

Answers (1)

zaufi
zaufi

Reputation: 7119

Referred questions and answers look out of date (and strange some time). Nowadays CMake is capable to do exactly what you want. All that you need is to add an object library.

Upvotes: 1

Related Questions