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

Change output_name to cvd in CMakeLists.txt #49

Open
ghost opened this issue May 6, 2019 · 1 comment
Open

Change output_name to cvd in CMakeLists.txt #49

ghost opened this issue May 6, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented May 6, 2019

Hello,
When installing libCVD with CMake on a Linux system, the library is exported as "libCVD.a".
It is currently not found by CVDConfig.cmake, which looks for a library bearing the name "libcvd.*" .

One fix for this is to add
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "cvd")
to CMakeLists.txt, to force the library name to libcvd.

Best regards

@SadPencil
Copy link

SadPencil commented Apr 8, 2021

I have encountered this problem, too. But the difference is that the library name is libcvd.a. So, changing the library name to cvd from CVD helps.

At file libcvd/examples/CMakeLists.txt:

add_executable(colourmaps colourmaps.cc)
target_link_libraries(colourmaps PRIVATE cvd)
add_executable(distance_transform distance_transform.cc)
target_link_libraries(distance_transform PRIVATE cvd)

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