Skip to content

Commit

Permalink
Fix CMake warning: call cmake_minimum_required() before project()
Browse files Browse the repository at this point in the history
cmake_minimum_required() should be called prior to this top-level project() call.

Signed-off-by: Steffen Pankratz <[email protected]>
  • Loading branch information
kratz00 authored and icculus committed Jun 24, 2023
1 parent 04f7047 commit b4e32da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# and even on the original test system, become incorrect over time.
# Only choose options you want/need to squeeze every byte off the download.

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)

# !!! FIXME: this is stupid.
IF(NOT BEOS)
Expand All @@ -26,8 +27,6 @@ ELSE(NOT BEOS)
PROJECT(MojoSetup CXX)
ENDIF(NOT BEOS)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)

# !!! FIXME: correct this to new policy and bump minimum cmake requirement.
IF(COMMAND CMAKE_POLICY)
# Use old policy when it comes to escaping macros,
Expand Down

0 comments on commit b4e32da

Please sign in to comment.