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

Cannot build the lib due to CMake Export pb #114

Open
cmassaloux opened this issue Feb 8, 2023 · 2 comments
Open

Cannot build the lib due to CMake Export pb #114

cmassaloux opened this issue Feb 8, 2023 · 2 comments

Comments

@cmassaloux
Copy link

Hi !
One year ago, I have built the lib without problem
But today, CMake complains about Export problem.
I guess it's a new version of CMake that brings this issue.

My environment:
Linux Ubuntu 20.04.4 LTS with gcc 9.4.0 + cmake 3.16.3
I also face the same issue with Ret Had Enterprise 8.7 + gcc 8.5.0 + cmake 3.18.2 or 3.20.2 (both tested)

The error message is:
CMake Error: install(EXPORT "cpp_redis" ...) includes target "cpp_redis" which requires target "tacopie" that is not in any export set.

I tried to figure things out, but I'm really not good at understanding CMake configuration files. Sorry...

Here is the full log:
$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at tacopie/CMakeLists.txt:41 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- Configuring done
CMake Error: install(EXPORT "cpp_redis" ...) includes target "cpp_redis" which requires target "tacopie" that is not in any export set.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

Hoping that you could find out what's wrong.
By the way, your lib is great work, many thanks for having provided to the community.
Regards from Paris..

@larkwiot
Copy link

larkwiot commented Mar 1, 2023

I am also having this issue

@ScarletGuo
Copy link

ScarletGuo commented Apr 20, 2023

I am also having this issue

This may help: #105 (comment)

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

3 participants