Skip to content

Fixed directory to which arith.h gets written#28

Merged
mapgccv merged 1 commit into
ampl:masterfrom
cvanaret:patch-1
Jul 10, 2026
Merged

Fixed directory to which arith.h gets written#28
mapgccv merged 1 commit into
ampl:masterfrom
cvanaret:patch-1

Conversation

@cvanaret

Copy link
Copy Markdown
Contributor

Hi,
I'm trying to cross-compile solvers2 on Yggdrasil and I realized that arith.h gets written to the wrong directory (${CMAKE_CURRENT_BINARY_DIR} instead of ${GENERATED_INCLUDE_DIR}).

How to reproduce the error:

# xtool.cmake
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(CMAKE_C_COMPILER cc)
set(CMAKE_CXX_COMPILER c++)

then

cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=xtool.cmake -DBUILD_SHARED_LIBS=ON

We get the following error message:

  Cannot find source file:

    .../asl/build/include/arith.h

@mapgccv mapgccv merged commit d80b3ba into ampl:master Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants