Open bensuperpc opened 3 years ago
It might be too late but I'll put my answer.
See CMakeLists.txt for the library names.
project(safestring)
︙
add_library(${PROJECT_NAME}_shared SHARED $<TARGET_OBJECTS:${PROJECT_NAME}_objlib>)
add_library(${PROJECT_NAME}_static STATIC $<TARGET_OBJECTS:${PROJECT_NAME}_objlib>)
safestring_shared
and safestring_static
are the available libraries.
So, you should use
target_link_libraries(crc32_crc32 PRIVATE safestring_shared)
or
target_link_libraries(crc32_crc32 PRIVATE safestring_static)
Making a project be FetchContent compatible is a bit nuanced. There are issues like namespacing options. I would recommend a review of the whole build system to adapt to modern CMake standards.
I tried using this project with my CMakefile but it doesn't work
I have these errors: