Skip to content

Commit 3404ba1

Browse files
committed
Fix CMake warning
cmake_minimum_required() should be called prior to this top-level project()
1 parent 718f272 commit 3404ba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# Unix: export LUA_DIR=/home/user/pkg
44
# Windows: set LUA_DIR=c:\lua51
55

6-
project(lua-cjson C)
76
cmake_minimum_required(VERSION 2.6)
87

8+
project(lua-cjson C)
9+
910
option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance")
1011
option(MULTIPLE_THREADS "Support multi-threaded apps with internal fpconv - recommended" ON)
1112

0 commit comments

Comments
 (0)