Skip to content

Commit

Permalink
cmake: fix warnings about cmake_minimum_required(…)
Browse files Browse the repository at this point in the history
```
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.
```
  • Loading branch information
benoit-pierre committed Oct 28, 2023
1 parent f4f3f7c commit c2e5bbb
Show file tree
Hide file tree
Showing 48 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion thirdparty/curl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(curl)
cmake_minimum_required(VERSION 3.5.1)
project(curl)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/czmq/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(czmq)
cmake_minimum_required(VERSION 3.5.1)
project(czmq)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/djvulibre/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(djvulibre)
cmake_minimum_required(VERSION 3.5.1)
project(djvulibre)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/dropbear/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(dropbear)
cmake_minimum_required(VERSION 3.5.1)
project(dropbear)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/fbink/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(fbink)
cmake_minimum_required(VERSION 3.5.1)
project(fbink)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/freetype2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(freetype2)
cmake_minimum_required(VERSION 3.5.1)
project(freetype2)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/fribidi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(fribidi)
cmake_minimum_required(VERSION 3.5.1)
project(fribidi)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/gettext/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(gettext)
cmake_minimum_required(VERSION 3.5.1)
project(gettext)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/giflib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(giflib)
cmake_minimum_required(VERSION 3.5.1)
project(giflib)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/glib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(glib)
cmake_minimum_required(VERSION 3.5.1)
project(glib)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/harfbuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(harfbuzz)
cmake_minimum_required(VERSION 3.5.1)
project(harfbuzz)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/kobo-usbms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(kobo-usbms)
cmake_minimum_required(VERSION 3.5.1)
project(kobo-usbms)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/kpvcrlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(kpvcrlib)
cmake_minimum_required(VERSION 3.5.1)
project(kpvcrlib)
enable_language(C CXX ASM)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/leptonica/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(leptonica)
cmake_minimum_required(VERSION 3.5.1)
project(leptonica)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libffi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libffi)
cmake_minimum_required(VERSION 3.5.1)
project(libffi)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libiconv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libiconv)
cmake_minimum_required(VERSION 3.5.1)
project(libiconv)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libjpeg-turbo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libjpeg-turbo)
cmake_minimum_required(VERSION 3.5.1)
project(libjpeg-turbo)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libk2pdfopt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libk2pdfopt)
cmake_minimum_required(VERSION 3.5.1)
project(libk2pdfopt)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libpng)
cmake_minimum_required(VERSION 3.5.1)
project(libpng)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libunibreak/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libunibreak)
cmake_minimum_required(VERSION 3.5.1)
project(libunibreak)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libwebp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libwebp)
cmake_minimum_required(VERSION 3.5.1)
project(libwebp)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/libzmq/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(libzmq)
cmake_minimum_required(VERSION 3.5.1)
project(libzmq)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lj-wpaclient/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lj-wpaclient)
cmake_minimum_required(VERSION 3.5.1)
project(lj-wpaclient)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lodepng/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lodepng)
cmake_minimum_required(VERSION 3.5.1)
project(lodepng)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lpeg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lpeg)
cmake_minimum_required(VERSION 3.5.1)
project(lpeg)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lua-Spore/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lua-Spore)
cmake_minimum_required(VERSION 3.5.1)
project(lua-Spore)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lua-htmlparser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lua-htmlparser)
cmake_minimum_required(VERSION 3.5.1)
project(lua-htmlparser)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lua-rapidjson/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lua-rapidjson)
cmake_minimum_required(VERSION 3.5.1)
project(lua-rapidjson)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/luajit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(luajit)
cmake_minimum_required(VERSION 3.5.1)
project(luajit)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/luasec/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(luasec)
cmake_minimum_required(VERSION 3.5.1)
project(luasec)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/luasocket/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(luasocket)
cmake_minimum_required(VERSION 3.5.1)
project(luasocket)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/lunasvg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(lunasvg)
cmake_minimum_required(VERSION 3.5.1)
project(lunasvg)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/minizip/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(minizip)
cmake_minimum_required(VERSION 3.5.1)
project(minizip)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/mupdf/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(mupdf)
cmake_minimum_required(VERSION 3.5.1)
project(mupdf)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/nanosvg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(nanosvg)
cmake_minimum_required(VERSION 3.5.1)
project(nanosvg)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/openssh/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(openssh)
cmake_minimum_required(VERSION 3.5.1)
project(openssh)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/openssl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(openssl)
cmake_minimum_required(VERSION 3.5.1)
project(openssl)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/popen-noshell/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(popen-noshell)
cmake_minimum_required(VERSION 3.5.1)
project(popen-noshell)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/sdcv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(sdcv)
cmake_minimum_required(VERSION 3.5.1)
project(sdcv)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/sdl2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(sdl2)
cmake_minimum_required(VERSION 3.5.1)
project(sdl2)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/sqlite/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(sqlite)
cmake_minimum_required(VERSION 3.5.1)
project(sqlite)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/tar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(tar)
cmake_minimum_required(VERSION 3.5.1)
project(tar)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/tesseract/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(tesseract)
cmake_minimum_required(VERSION 3.5.1)
project(tesseract)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/turbo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(turbo)
cmake_minimum_required(VERSION 3.5.1)
project(turbo)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/utf8proc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(utf8proc)
cmake_minimum_required(VERSION 3.5.1)
project(utf8proc)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(zlib)
cmake_minimum_required(VERSION 3.5.1)
project(zlib)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/zstd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(zstd)
cmake_minimum_required(VERSION 3.5.1)
project(zstd)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/zsync2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(zsync2)
cmake_minimum_required(VERSION 3.5.1)
project(zsync2)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../cmake_modules")
include("koreader_thirdparty_common")
Expand Down

0 comments on commit c2e5bbb

Please sign in to comment.