Skip to content

Commit b4e0ec0

Browse files
authored
cmake: put cmake_minimum_required before project()
This is sternly advised by cmake, see notes in [cmake_minimum_required()][1] description. [1]: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html suppresses cmake warning
1 parent da6cbf2 commit b4e0ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
12
PROJECT(instead)
23

3-
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
44
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
55

66
IF("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")

0 commit comments

Comments
 (0)