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

Add CMake 2 support #4530

merged 1 commit into from Aug 7, 2018

Add CMake 2 support #4530

merged 1 commit into from Aug 7, 2018


Copy link

@tresf tresf commented Aug 7, 2018

Partially reverts d599955 and fixes CMake 2 support when building with MingGW. Originally reported by @Umcaruje on #programming channel on Discord, CMake 3 git blame discovered by @PhysSong.

This patch does not need to be fast-forwarded to master branch because master requires CMake 3 already although it should be at least hand-patched because d599955 was accidentally reverted at some point.

Ubuntu 14.04 still defaults to CMake 2 by default (e.g. apt-get install cmake), so this can help avoid unobvious dependency issues.


-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")


-- Found PkgConfig: /opt/mingw64/bin/x86_64-w64-mingw32-pkg-config (found version "0.26")


-- checking for module 'sndfile>=1.0.11'
--   package 'sndfile>=1.0.11' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:189 (PKG_CHECK_MODULES)

CMake Error at CMakeLists.txt:191 (MESSAGE):
  LMMS requires libsndfile1 and libsndfile1-dev >= 1.0.11 - please install,
  remove CMakeCache.txt and try again!

Partially reverts d599955
Copy link
Member Author

tresf commented Aug 7, 2018

Note, until this PR is merged, the documentation temporarily states that cmake3 is required. That note should be removed once merged. Edit: Removed cmake3 note from documentation.

@tresf tresf merged commit 2ecc8bb into LMMS:stable-1.2 Aug 7, 2018
@tresf tresf deleted the cmake2 branch August 7, 2018 19:27
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

1 participant