Skip to content

macOS: seems like our CMake invocation picks up moc from homebrew #810

@jmarrec

Description

@jmarrec

Issue overview

I built this morning using the classic way (which is in our CI workflow) and realized that the moc executable was picked up from homebrew. Until now this was fine, but now there's a check added saying that the moc file was built with 6.9.0 and it errors out.

I think we should instead configure cmake like this:

cmake --preset conan-release -DCMAKE_PREFIX_PATH=/Users/julien/Qt/6.5.2/macos

Full command that worked

cmake --preset conan-release -DCMAKE_PREFIX_PATH=/Users/julien/Qt/6.5.2/macos -DQT_INSTALL_DIR:PATH=/Users/julien/Qt/6.5.2/macos -DBUILD_PACKAGE:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=ON -DCPACK_CODESIGNING_DEVELOPPER_ID_APPLICATION:STRING="Developer ID Application: The Energy Coalition (UG9S5ZLM34)"               -DCPACK_CODESIGNING_NOTARY_PROFILE_NAME:STRING=OpenStudioApplication               -DCPACK_CODESIGNING_MACOS_IDENTIFIER:STRING=org.openstudiocoalition.OpenStudioApplication

Current Behavior

Expected Behavior

Steps to Reproduce

Possible Solution

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version):
  • Version of OpenStudioApplication (if using an intermediate build, include SHA):

Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions