Skip to content

Commit

Permalink
Set cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
Browse files Browse the repository at this point in the history
Removed set CMAKE_BUILD_TYPE
  • Loading branch information
agaida committed Nov 18, 2018
1 parent acf7248 commit 7131618
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)

cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
# CMP0000: Call the cmake_minimum_required() command at the beginning of the top-level
# CMakeLists.txt file even before calling the project() command.
# The cmake_minimum_required(VERSION) command implicitly invokes the cmake_policy(VERSION)
# command to specify that the current project code is written for the given range of CMake
# versions.
project(lxqt-globalkeys)

# additional cmake files
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

set(LXQTBT_MINIMUM_VERSION "0.5.0")

set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand Down
2 changes: 0 additions & 2 deletions autostart/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)

file(GLOB DESKTOP_FILES_IN *.desktop.in)

# Translations **********************************
Expand Down
4 changes: 0 additions & 4 deletions config/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
set(PROJECT_NAME lxqt-config-globalkeyshortcuts)
project(${PROJECT_NAME})

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

find_package(KF5WindowSystem REQUIRED)

set(QT_DBUS_PREFIX "org.qtproject")
Expand Down
2 changes: 0 additions & 2 deletions config/translations/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)

project(lxqt-config-globalkeyshortcuts)

build_component("." "")
4 changes: 0 additions & 4 deletions daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
set(PROJECT_NAME lxqt-globalkeysd)
project(${PROJECT_NAME})

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

find_package(X11)
include_directories("${X11_INCLUDE_DIR}")

Expand Down

0 comments on commit 7131618

Please sign in to comment.