sockpp icon indicating copy to clipboard operation
sockpp copied to clipboard

The cmake doesn't generate config file to be included as a 3th party project

Open arsdever opened this issue 5 years ago • 5 comments

I am developing a library, which uses come 3rd party libraries including this one. For the other libraries, I was able to include them using the following CMakeLists.txt code:

find_package(package_name REQUIRED)
target_link_libraries(my_target_name PRIVATE package_name::package_name)

but for this one, it says the following:

Could not find a package configuration file provided by "sockpp-static" with any of the following names: sockpp-staticConfig.cmake sockpp-static-config.cmake

arsdever avatar May 04 '20 18:05 arsdever

@fpagliughi I saw you pulled these changes into the cmake-refactor branch. Are you planning on merging it to master in the near future?

varunsh-xilinx avatar Aug 04 '22 17:08 varunsh-xilinx

@varunsh-xilinx I've been trying to learn more CMake, but haven't been doing a lot of C++ programming lately, so it's been slow. I will go back to testing it and see what I still needed to do to finish, but if you try it, let me know how it works out for you.

fpagliughi avatar Aug 12 '22 21:08 fpagliughi

I'm using the cmake-refactor branch currently and it seems to work fine. Great work on this project btw!

varunsh-xilinx avatar Aug 12 '22 23:08 varunsh-xilinx

Using the cmake-refactor branch, what is the correct way of bringing this into another, top-level, CMake project?

stephenaa avatar Oct 14 '22 21:10 stephenaa

@stephenaa I'm just installing this project using the cmake-refactor branch. Then, in the other CMake project, I'm using find_package(sockpp) and then linking to it as in the code snippet above.

varunsh-xilinx avatar Oct 19 '22 20:10 varunsh-xilinx

This should finally be fixed with a released version - v0.8.0

fpagliughi avatar Jan 18 '23 04:01 fpagliughi