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

CMake installation cannot find headers when building binaries on a separate directory #86

Closed
khaotik opened this issue Dec 13, 2016 · 2 comments

Comments

@khaotik
Copy link

khaotik commented Dec 13, 2016

My OS is Ubuntu 16.04. I made a directory check/Build to build binaries in cmake-gui

$ cmake-gui .
$ cd Build/
$ make -j4
[  2%] Building C object lib/CMakeFiles/compat.dir/libcompat.c.o
[  5%] Building C object src/CMakeFiles/check.dir/check.c.o
< ... >
[100%] Linking C executable check_check
[100%] Built target check_check

Compilation had no issue, however when I try to install:

sudo make install
[sudo] password for khaotik: 
[  5%] Built target compat
[ 30%] Built target check
[ 35%] Built target check_nofork_teardown
[ 51%] Built target check_check_export
[ 89%] Built target check_check
[ 94%] Built target check_nofork
[100%] Built target ex_output
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/include/check_stdint.h
-- Installing: /usr/local/lib/libcompat.a
CMake Error at lib/cmake_install.cmake:40 (file):
  file INSTALL cannot find "/home/khaotik/Build/check/Build/lib/libcompat.h".
Call Stack (most recent call first):
  cmake_install.cmake:41 (include)
  


Makefile:71: recipe for target 'install' failed
make: *** [install] Error 1

I fixed the problem by copying the needed file, however I don't think the error should be there on the first place.

@brarcher
Copy link
Contributor

Jenkins: ok to test

@brarcher
Copy link
Contributor

This issue should now be resolved, so I'll close the issue. If it is not resolved in the next release or in master, let me know.

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