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

[CMake] Fix default install directory #529

Merged

Conversation

VladiKrapp-Arm
Copy link
Collaborator

The mechanism for setting the default installation directory to /install is highly dependent on the order of events in the CMakeLists.txt file. Due to recent shifts in the file this has stopped working.
The CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT check must happen immediately after the first invocation of project(...). When the llvm-project directory is included first, it is calling project() and then sets the CMAKE_INSTALL_PREFIX to the system default.

The mechanism for setting the default installation directory to
<BUILDDIR>/install is highly dependent on the order of events in the
CMakeLists.txt file. Due to recent shifts in the file this has stopped
working.
The CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT check must happen
immediately after the first invocation of project(...). When the
llvm-project directory is included first, it is calling project() and
then sets the CMAKE_INSTALL_PREFIX to the system default.
Copy link
Collaborator

@ostannard ostannard left a comment

Choose a reason for hiding this comment

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

LGTM

@VladiKrapp-Arm VladiKrapp-Arm merged commit 18b561e into ARM-software:main Oct 10, 2024
1 check passed
@VladiKrapp-Arm VladiKrapp-Arm deleted the fix_default_install_dir branch October 10, 2024 11:00
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