relic-toolkit / relic

Code
Other
452 stars 179 forks source link

cmake error the target not found #281

Closed mialuyao closed 8 months ago

mialuyao commented 9 months ago

Hello I have installed relic and pass all test project. librelic_s.a and librelic.so at /usr/local/lib Head files at /usr/local/include/relic/ When I cmake my project, it always show cmake error, but I have set the INCLUDE_DIRS and LIBRARIES PATH at CMakeLists.txt

CMake Error at CMakeLists.txt:16 (add_executable):
  Target "my_prohect" links to target "RELIC::relic" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMakeLists.txt as below

set(RLC_INCLUDE_DIRS "/usr/local/include/relic")
set(RLC_LIBRARIES "/usr/local/lib/librelic_s.a")
....
target_link_libraries(.... ${RLC_LIBRARIES})

Thank you!

dfaranha commented 9 months ago

Can you try building and linking by hand? It might help debug what the real issue is.

dfaranha commented 8 months ago

Closing due to no answer.