Skip to content

Inconsistent include path in cmake package #79

@wspear

Description

@wspear

I am constructing a simple test for alquimia as deployed by Spack as part of the E4S testsuite. To do this I'm just extracting the test_alquimia_c_utils.c test and setting up a cmake build against the installed package. But I'm running into an issue. This test code does its includes like:
#include "alquimia/alquimia_constants.h"
But the installed share/alquimia/alquimia.cmake uses this in its include path setup:
/home/wspear/bin/SPACK/spack/opt/spack/linux-ubuntu20.04-westmere/gcc-9.4.0/alquimia-1.0.9-pfi4oostbni47etbzzcsmatu5ncnfqje/include/alquimia

Since the source is asking for a file with respect to the top level include directory it isn't found. Editing the source file doesn't fix it since the header files also do their includes with respect to the base include directory.

If there is a better way to set up a quick sanity check for an installed version of alquimia I would be happy to hear about it. I'm fine with bypassing cmake altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions