Skip to content

Commit 5e25533

Browse files
committed
cmake: move cmake_minimum_required() to the very top of CMakeLists.txt
Both documentation and CMake binary itself suggest calling cmake_minimum_required() before anything else.
1 parent b162803 commit 5e25533

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,5 +1,5 @@
1-
project(apulse)
21
cmake_minimum_required (VERSION 2.8...4.0)
2+
project(apulse)
33

44
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -fPIC -fvisibility=hidden")
55
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=implicit-function-declaration")

0 commit comments

Comments
 (0)