TheiaSfM
TheiaSfM copied to clipboard
CMAKE LISTS PATH is list of paths
In commit ff18e0775c03d509eca7bf5baef69143583c3ff5 the use of CMAKE_MODULE_PATH will cause the build to fail if there is more than one directory specified. See: https://cmake.org/cmake/help/v3.10/variable/CMAKE_MODULE_PATH.html
As a work around (because my CMAKE_MODULE_PATH references several modules when I am compiling the theia libraries), I've opted to use the CMAKE_CURRENT_LIST_DIR in CMakeLists.txt under libraries/vlfeat/
e.g. include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/OptimizeTheiaCompilerFlags.cmake") optimizetheiacompilerflags()
It isn't 'pretty', (../../ is gross) but it works provided the CMakeLists.txt path is in libraries/vlfeat and libraries is in the same directory as the theia cmake modules directory.
Again, this is not an issue directly when compiling theia by itself, but if incorporated in to another project with CMake, it can be an issue.