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

Missing fmi3 headers in CMAKE installed package #66

Closed
yoerg opened this issue Jun 26, 2023 · 2 comments
Closed

Missing fmi3 headers in CMAKE installed package #66

yoerg opened this issue Jun 26, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yoerg
Copy link

yoerg commented Jun 26, 2023

I'm creating a binary package from 3.0a1 with

cmake ../fmi-library-3.0a1
cmake --build .
cmake --install .

But the resulting ../install directory is missing FMI3/fmi3_xml_dimension.h and possibly other FMI3 headers.

Trying to compile a source file containing #include "fmilib.h" with e.g. gcc -I ../install -c source.c results in an error:

In file included from ../install/include/FMI3/fmi3_import_variable.h:30,
                 from ../install/include/FMI3/fmi3_import.h:36,
                 from ../install/include/fmilib.h:30,
                 from source.c:1:
../install/include/FMI3/fmi3_import_dimension.h:30:10: fatal error: FMI3/fmi3_xml_dimension.h: No such file or directory
   30 | #include "FMI3/fmi3_xml_dimension.h"

I believe either the header is simply missing from FMIIMPORT_PUBHEADERS or the #include is unintentional.

Tested with Unix Makefiles and MSVC 19.

@modelonrobinandersson modelonrobinandersson added the bug Something isn't working label Jun 27, 2023
@PeterMeisrimelModelon PeterMeisrimelModelon self-assigned this Jun 27, 2023
@PeterMeisrimelModelon
Copy link
Contributor

We have an outstanding ticket to fix this include issue for 3.0a2.

@PeterMeisrimelModelon
Copy link
Contributor

This should now be fixed in the 3.0a2 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants