Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

cmake: install TARGETS given no ARCHIVE DESTINATION for static library target #82

Closed
alfredh opened this issue Sep 22, 2022 · 3 comments · Fixed by #83
Closed

cmake: install TARGETS given no ARCHIVE DESTINATION for static library target #82

alfredh opened this issue Sep 22, 2022 · 3 comments · Fixed by #83

Comments

@alfredh
Copy link
Contributor

alfredh commented Sep 22, 2022

OS: Debian 10
CMake version 3.13

$ cmake --build build
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found RE: /home/alfredh/git/re/libre.so  
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1n")  
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for thrd_create
-- Looking for thrd_create - not found
CMake Error at CMakeLists.txt:134 (install):
  install TARGETS given no ARCHIVE DESTINATION for static library target
  "rem".


-- Configuring incomplete, errors occurred!
See also "/home/alfredh/git/rem/build/CMakeFiles/CMakeOutput.log".
See also "/home/alfredh/git/rem/build/CMakeFiles/CMakeError.log".
@sreimers
Copy link
Member

Will fix this together with new debian install helpers, like in libre.

@alfredh
Copy link
Contributor Author

alfredh commented Sep 23, 2022

I tried again and now getting this error:

CMake Error at CMakeLists.txt:154 (install):
  install TARGETS given no ARCHIVE DESTINATION for static library target
  "rem".


-- Configuring incomplete, errors occurred!
See also "/home/alfredh/git/rem/CMakeFiles/CMakeOutput.log".
See also "/home/alfredh/git/rem/CMakeFiles/CMakeError.log".

@sreimers
Copy link
Member

sreimers commented Sep 23, 2022

I think we have to build static and shared lib at once like in libre, will make another PR.

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

Successfully merging a pull request may close this issue.

2 participants