<div dir="ltr"><div><div><div><div><div>Hi!<br><br></div>I've come across an odd conundrum and need a little help resolving it. I'm porting a large toolkit to use CMake instead of an autoconf / configure-based makefile system. One problem we tripped across is a library named 'libgeneral.so', built as part of the toolkit itself. The trouble is that the syltax of a CMakeLists.txt file does not permit linking a library named general.<br>
<br>Suppose you have a library named general:<br><br>-----<br></div>add_library(general foo bar)<br>-----<br><br></div>...and then try to link it into an application:<br>-----<br></div>add_executable(myapp baz)<br></div>target_link_libraries(myapp general)<br>
<div><div>-----<br><br></div><div>cmake complains about the fact that 'general' is a reserved keyword, and I have found no way to force or finagle linkage against a library named 'libgeneral'.<br><br>Any ideas?<br>
</div></div></div>