Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during build: install TARGETS given no OBJECTS DESTINATION for object library target #19

Open
mikebocian opened this issue Sep 16, 2019 · 1 comment

Comments

@mikebocian
Copy link

mikebocian commented Sep 16, 2019

Hi there,

I would like to code something using your library, but unfortunately I cannot build this using the provided steps. I am using Linux Mint.

The console output and some basic info about my setup is pasted here.

sudo cmake -DCMAKE_INSTALL_PREFIX=dist ..

CMake Error at CMakeLists.txt:50 (install):
  install TARGETS given no OBJECTS DESTINATION for object library target
  "cmmk_obj".


-- Configuring incomplete, errors occurred!
See also "/home/bocian/projects/libcmmk/build/CMakeFiles/CMakeOutput.log".
 ✗ uname -a
Linux bocian 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
✗ cmake -version
cmake version 3.10.2
✗ make -version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
@mikebocian mikebocian changed the title Cannot build Error during build: install TARGETS given no OBJECTS DESTINATION for object library target Sep 16, 2019
@quornian
Copy link

I hit this too.

Removing "cmmk_obj" from that line (50) in CMakeLists.txt did the trick for me. That and specifying -DCMAKE_C_FLAGS=-fPIC after seeing the next error with the suggestion "recompile with -fPIC".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants