Fix warnings when newer CMake is used.
project() call should always come AFTER cmake_minimum_required(). This caused various hard-to-debug issues when searching for packages. Newer CMake versions complain that compatibility is broken with v2.6
This commit is contained in:
parent
7e0e552fd2
commit
883f46662d
@ -56,4 +56,4 @@ FIND_PATH(DBUS_ARCH_INCLUDE_DIR
|
|||||||
SET(DBUS_INCLUDE_DIRS ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
|
SET(DBUS_INCLUDE_DIRS ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
|
||||||
|
|
||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE(FindPackageHandleStandardArgs)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DBUS REQUIRED_VARS DBUS_INCLUDE_DIRS DBUS_LIBRARIES)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DBus REQUIRED_VARS DBUS_INCLUDE_DIRS DBUS_LIBRARIES)
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(Shiny)
|
project(Shiny)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(Shiny STATIC
|
add_library(Shiny STATIC
|
||||||
Shiny.h
|
Shiny.h
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(admesh)
|
project(admesh)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(admesh STATIC
|
add_library(admesh STATIC
|
||||||
connect.cpp
|
connect.cpp
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(nowide)
|
project(nowide)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(nowide STATIC
|
add_library(nowide STATIC
|
||||||
nowide/args.hpp
|
nowide/args.hpp
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(clipper)
|
project(clipper)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(clipper STATIC
|
add_library(clipper STATIC
|
||||||
# We are using ClipperLib compiled as part of the libslic3r project using Slic3r::Point as its base type.
|
# We are using ClipperLib compiled as part of the libslic3r project using Slic3r::Point as its base type.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(glu-libtess)
|
project(glu-libtess)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(glu-libtess STATIC
|
add_library(glu-libtess STATIC
|
||||||
src/dict-list.h
|
src/dict-list.h
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(imgui)
|
project(imgui)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(imgui STATIC
|
add_library(imgui STATIC
|
||||||
imconfig.h
|
imconfig.h
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
project(libigl)
|
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
|
project(libigl)
|
||||||
|
|
||||||
add_library(libigl INTERFACE)
|
add_library(libigl INTERFACE)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(miniz)
|
project(miniz)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(miniz INTERFACE)
|
add_library(miniz INTERFACE)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8.12)
|
||||||
project(semver)
|
project(semver)
|
||||||
cmake_minimum_required(VERSION 2.6)
|
|
||||||
|
|
||||||
add_library(semver STATIC
|
add_library(semver STATIC
|
||||||
semver.c
|
semver.c
|
||||||
|
Loading…
Reference in New Issue
Block a user