Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cmake: move cmake_minimum_required() before project()#1133

Merged
Cyan4973 merged 1 commit intolz4:devfrom
SpaceIm:fix/cmake-minimum-required-position
Aug 12, 2022
Merged

cmake: move cmake_minimum_required() before project()#1133
Cyan4973 merged 1 commit intolz4:devfrom
SpaceIm:fix/cmake-minimum-required-position

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.

2 participants

Comments