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

Exclude nlopt.f from headers when fortran is disabled #547

Closed
wants to merge 4 commits into from

Conversation

abram
Copy link

@abram abram commented Jan 23, 2024

Currently attempting to create an Xcode project with cmake -G Xcode gives the following error:

  The custom command generating

    nlopt-build/nlopt.f

  is attached to multiple targets:

    generate-fortran
    nlopt

  but none of these is a common dependency of the other(s).  This is not
  allowed by the Xcode "new build system".

This removes nlopt.f from headers unless fortran support is explicitly disabled, so generate-fortran won't be considered a dependency of non-fortran builds.

Currently attempting to create an Xcode project with cmake -G Xcode gives the following error:

```
  The custom command generating

    nlopt-build/nlopt.f

  is attached to multiple targets:

    generate-fortran
    nlopt

  but none of these is a common dependency of the other(s).  This is not
  allowed by the Xcode "new build system".
```

This removes nlopt.f from headers unless fortran support is explicitly disabled, so `generate-fortran` won't be considered a dependency of non-fortran builds.
@abram
Copy link
Author

abram commented Jan 23, 2024

Hello! I was just doing some code cleanup and realized I'd never submitted a pull request for this small patch I made to the nlopt CMakeLists file a couple of years ago. Thanks for the wonderful project!

@jschueller
Copy link
Collaborator

7218c80

@jschueller jschueller closed this Jan 23, 2024
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