On Sat, Apr 9, 2016 at 8:43 AM, Matt Broadstone <mbroa...@gmail.com> wrote:
> Hi, > I'm trying to build a recipe for apache qpid, which is a cmake-based > project. Configuration is currently failing due to "find_file" not being > able to find a file in the source directory for the build: > > find_file(QPID_VERSION_FILE NAMES QPID_VERSION.txt PATHS > ${PROJECT_SOURCE_DIR}/.. ${PROJECT_SOURCE_DIR} NO_DEFAULT_PATH) > mark_as_advanced(QPID_VERSION_FILE) > if(NOT QPID_VERSION_FILE) > message(FATAL_ERROR "Cannot find QPID_VERSION.txt") > endif(NOT QPID_VERSION_FILE) > > What's truly puzzling is that if I try the following: > > execute_process(COMMAND ls ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE > TEST_OUTPUT) > message("LS RESULT: ${TEST_OUTPUT}") > > the paths are indeed correct; the result of the ls contains the > QPID_VERSION.txt file. This seems to indicate to me that something else is > failing internally, but am not sure where I should be looking exactly. > > Has anyone experienced this before? Are there any general tips for > debugging these types of failures in cmake projects in yocto? > > Regards, > Matt > Continuing in the tradition of answering my own silly questions, this seems to be related to the fact that the cmake.bbclass overwrites CMAKE_FIND_ROOT_PATH's default value (empty) with yocto-specific values so as to prevent bleed from the host. Hope this helps someone in the future. Matt
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto