Skip to content

Fixed directory to which arith.h gets written#28

Open
cvanaret wants to merge 1 commit into
ampl:masterfrom
cvanaret:patch-1
Open

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

Conversation

@cvanaret

Copy link
Copy Markdown

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

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.

1 participant