In cmakeconfig.h.in, it appears that the HAVE_ALLOCA_H and HAVE_LIBGEN_H symbols are hardcoded to 1, regardless of the results of the CHECK_INCLUDE_FILE() calls in CMakeLists.txt.  This causes compilation to fail under MinGW which does not provide the alloca.h header.

Changing:

#define HAVE_ALLOCA_H 1
#define HAVE_LIBGEN_H 1

To:

#cmakedefine HAVE_ALLOCA_H
#cmakedefine HAVE_LIBGEN_H

Resolves this issue.

HAVE_ALLOCA_H and HAVE_LIBGEN_H symbols ignore results of cmake configure
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : HAVE_ALLOCA_H and HAVE_LIBGEN_H symbols ignore results of cmake configure
Issue date:

--- start body ---
In cmakeconfig.h.in, it appears that the HAVE_ALLOCA_H and HAVE_LIBGEN_H symbols are hardcoded to 1, regardless of the results of the CHECK_INCLUDE_FILE() calls in CMakeLists.txt.  This causes compilation to fail under MinGW which does not provide the alloca.h header.

Changing:

#define HAVE_ALLOCA_H 1
#define HAVE_LIBGEN_H 1

To:

#cmakedefine HAVE_ALLOCA_H
#cmakedefine HAVE_LIBGEN_H

Resolves this issue.

--- end body ---
