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

Fix issue with CMake Xcode generator #1266

Merged
merged 2 commits into from
Aug 12, 2023
Merged

Conversation

bradhowes
Copy link
Contributor

@bradhowes bradhowes commented Aug 11, 2023

There is a known issue with CMake and its Xcode generator when the target has no sources of its own -- see

https://gitlab.kitware.com/cmake/cmake/-/issues/23688

A workaround is to define an empty source file that can be used to trigger the build path for the framework. Without this hack, the framework is missing the shared library component.

With this change, the following now runs successfully:

% cmake -G Xcode -Denable-sdl2=NO -Denable-readline=NO -Denable-dbus=NO -DCMAKE_INSTALL_PREFIX=$PWD .. 
% xcodebuild

There is a known issue with CMake and its Xcode generator when
the target has no sources of its own -- see

https://gitlab.kitware.com/cmake/cmake/-/issues/23688

A workaround is to define an empty source file that can be used
to trigger the build path for the framework. Without this hack,
the framework is missing the shared library component.

With this change, the following now runs successfully:

``
% cmake -G Xcode -Denable-sdl2=NO -Denable-readline=NO -Denable-dbus=NO -DCMAKE_INSTALL_PREFIX=$PWD ..
% xcodebuild
```
@derselbst derselbst mentioned this pull request Aug 12, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@derselbst derselbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derselbst derselbst merged commit bf037ce into FluidSynth:master Aug 12, 2023
46 of 55 checks passed
DominusExult added a commit to DominusExult/fluidsynth-sans-glib that referenced this pull request Mar 6, 2024
* commit '683270db64302e59d26b9610514af1cfe0a80493':
  Bump to 2.3.5
  Fix libinstpatch and sndfile not being discovered on Windows (FluidSynth#1299)
  Update FreeBSD CI: Drop 12.4 and add 14.0
  Fix some rounding issues due to double promotion (FluidSynth#1286)
  Bump to 2.3.4
  Fix player termination after stopping and restarting (FluidSynth#1273)
  fix for issue FluidSynth#1268: Pipewire's Jack implementation not found (FluidSynth#1269)
  Fix issue with CMake Xcode generator (FluidSynth#1266)
  Refurbish CI (FluidSynth#1267)
  Fallback to IPv4 when creating socket if IPv6 is not available (FluidSynth#1208) (FluidSynth#1265)
  Turn off pending notes and issue a warning (FluidSynth#1264)
  Fix incorrect way of turning CMAKE_INSTALL_LIBDIR absolute (FluidSynth#1261)
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