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: move cmake_minimum_required() before project() #1133

Merged
merged 1 commit into from Aug 12, 2022

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Aug 11, 2022

cmake_minimum_required() must always be the first instruction of a CMakeLists (many side effects can occur otherwise, like ignoring policies externally injected, or other weird stuff).
project() should come after cmake_minimum_required() as soon as possible. Therefore option() are moved after project().

/cc @nemequ

cmake_minimum_required() must always be the first instruction of a CMakeLists.
project() should come after cmake_minimum_required() as soon as possible. Therefore option() are moved after project().
@Cyan4973 Cyan4973 merged commit 9283924 into lz4:dev Aug 12, 2022
@SpaceIm SpaceIm deleted the fix/cmake-minimum-required-position branch August 12, 2022 06:49
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.

None yet

2 participants