-
Notifications
You must be signed in to change notification settings - Fork 108
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
CMake variables CLANDMARK_INCLUDE_DIRS and CLANDMARK_LIBRARIES not set #32
Comments
Hi @mrjogo, just to avoid possible confusion, was the library successfully compiled? |
Yes, using default CMake options. I could be missing a step to set up CMake after installing CLandmark using cmake_minimum_required(VERSION 2.8)
project(test_clandmark)
find_package(clandmark REQUIRED)
MESSAGE(STATUS "CLANDMARK_INCLUDE_DIRS: " ${CLANDMARK_INCLUDE_DIRS})
MESSAGE(STATUS "CLANDMARK_LIBRARIES: " ${CLANDMARK_LIBRARIES}) Creates the following output (you can see the variables aren't set):
Thanks! |
And do you see If anything fails, you can specify the include directories and libraries manually by adding the libclandmark/ folder to the includes and both clandmark and flandmark dynamic libraries... |
I output all the CMake variables from the above CMakeLists.txt, and here were the clandmark ones:
Interestingly, when I add
I can certainly work around this, but it seems that something's going wrong with the install (I'm afraid I'm not familiar enough with CMake or your library to diagnose what). |
Ok, thanks for the error messages, I will try to fix this. |
I've installed CLandmark to my system (OS X 10.11.1; make install), but when I try to use the library with my CMake file, it fails because find_package(clandmark REQUIRED) doesn't set CLANDMARK_INCLUDE_DIRS or CLANDMARK_LIBRARIES (I based my CMake on the example from http://cmp.felk.cvut.cz/~uricamic/clandmark/#snippets_cmake_example, so I expect that won't work either).
The text was updated successfully, but these errors were encountered: