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 error #31

Closed
dashpritam opened this issue Jun 13, 2022 · 1 comment
Closed

Cmake error #31

dashpritam opened this issue Jun 13, 2022 · 1 comment

Comments

@dashpritam
Copy link

Hello,
When I build the library using cmake I get the following error. Any help is highly apprecated.

`-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at cmake/MakeLibrary.cmake:20 (install):
install TARGETS given no ARCHIVE DESTINATION for static library target
"EFG".
Call Stack (most recent call first):
src/CMakeLists.txt:3 (MakeLibrary)

-- 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
CMake Error at src/CMakeLists.txt:22 (FetchContent_MakeAvailable):
Unknown CMake command "FetchContent_MakeAvailable".

-- Configuring incomplete, errors occurred!
`

I'm using GCC/G++ 10 and cmake 3.13

@dashpritam
Copy link
Author

updating cmake solved this.

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

1 participant