[CMake] Removing debug and optimized prefixes
Alvaro Aguilera
alvaro.aguilera at gmail.com
Thu Aug 15 07:12:07 EDT 2013
Hello,
I'm using cmake 2.8.11.2 under Linux to compile a small shared library.
The problem I have is that the cmake's link command prefixes some of the
libraries with "debug" and "optimized":
(...) -loptimized /usr/local/lib64/libprotobuf.so -ldebug
/usr/local/lib64/libprotobuf.so -ldebug -Wl (...)
the linker isn't aware of the prefixes and gives and error:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -loptimized
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -ldebug
Any idea how to fix this issue?
Thanks,
Alvaro
More information about the CMake
mailing list