Skip to content

MacOS Build Fails Using cmake 4.0.0 #1183

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

Open
JasonCoombs opened this issue Apr 5, 2025 · 1 comment
Open

MacOS Build Fails Using cmake 4.0.0 #1183

JasonCoombs opened this issue Apr 5, 2025 · 1 comment
Labels

Comments

@JasonCoombs
Copy link

Maybe a note in the README would help?

Building with cmake 3.31.6 (the previous release available from cmake.org) worked fine.

If a note is added to the README it's also useful to know that $ cmake -G Xcode generates the Xcode project file, as expected.

-- Configuring incomplete, errors occurred!
Command PhaseScriptExecution failed with a nonzero exit code

note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'Hunter')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'Hunter')
** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution Generate\ CLI11-Release-prefix/src/CLI11-Release-stamp/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/CLI11-Release-configure /Users/jason/.hunter/_Base/26c79d5/fde453a/8f00a61/Build/CLI11/Build/build/Hunter.build/Debug/CLI11-Release.build/Script-1A27BE7057D102FAD2F31327.sh (in target 'CLI11-Release' from project 'Hunter')
(1 failure)

[hunter ** FATAL ERROR **] Build step failed (dir: /Users/jason/.hunter/_Base/26c79d5/fde453a/8f00a61/Build/CLI11
[hunter ** FATAL ERROR **] [Directory:/Users/jason/.hunter/_Base/Download/Hunter/0.25.8/26c79d5/Unpacked/cmake/projects/CLI11]

------------------------------ ERROR -----------------------------
    https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.html
------------------------------------------------------------------

CMake Error at /Users/jason/.hunter/_Base/Download/Hunter/0.25.8/26c79d5/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  /Users/jason/.hunter/_Base/Download/Hunter/0.25.8/26c79d5/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
  /Users/jason/.hunter/_Base/Download/Hunter/0.25.8/26c79d5/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
  /Users/jason/.hunter/_Base/Download/Hunter/0.25.8/26c79d5/Unpacked/cmake/projects/CLI11/hunter.cmake:225 (hunter_download)
  /Users/jason/.hunter/_Base/Download/Hunter/0.25.8/26c79d5/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
  evmc/tools/evmc/CMakeLists.txt:5 (hunter_add_package)


-- Configuring incomplete, errors occurred!

@chfast
Copy link
Member

chfast commented Apr 7, 2025

I can't see exactly what has failed, but this may be related to CMake 4.0 removing CMake 3.5 support. This may be the solution: cpp-pm/hunter#769.

@chfast chfast added the build label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants