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 incorrect way of turning CMAKE_INSTALL_LIBDIR absolute #1261

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

OPNA2608
Copy link
Contributor

${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} is not guaranteed to make sense because CMAKE_INSTALL_LIBDIR may be specified as an absolute path, in which case this concatenation is nonsense.

Use CMAKE_INSTALL_FULL_LIBDIR instead, which will use CMAKE_INSTALL_LIBDIR if it's already absolute, or concatenate it onto CMAKE_INSTALL_PREFIX if it isn't.

${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} is not guaranteed to make sense
because CMAKE_INSTALL_LIBDIR may be specified as an absolute path, in which case
this concatenation is nonsense.

Use CMAKE_INSTALL_FULL_LIBDIR instead, which will use CMAKE_INSTALL_LIBDIR if
it's already absolute, or concatenate it onto CMAKE_INSTALL_PREFIX if it isn't.
@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 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

@derselbst
Copy link
Member

Thanks!

@derselbst derselbst merged commit 5a12a58 into FluidSynth:master Jul 11, 2023
48 of 55 checks passed
mikelow added a commit to mikelow/fluidsynth that referenced this pull request Jul 13, 2023
Fix incorrect way of turning CMAKE_INSTALL_LIBDIR absolute (FluidSynth#1261)
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