mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-27 06:15:45 +00:00
Fixed cmake warnings.
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
|
||||
# 3.12 for CMAKE_PROJECT_VERSION
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
# Use new policy for option() to supress warnings.
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||||
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/version.txt)
|
||||
|
||||
|
||||
@@ -51,6 +51,10 @@ message(STATUS "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL: ${CMAKE_EXE_LINKER_FLAGS_MINS
|
||||
message(STATUS "CMAKE_EXE_LINKER_FLAGS_RELEASE: ${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
|
||||
message(STATUS "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO: ${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}")
|
||||
|
||||
# Suppress warning about manually specified variables not being used (this is a very common variable)
|
||||
message(STATUS "CMAKE_C_COMPILER: ${CMAKE_C_COMPILER}")
|
||||
|
||||
|
||||
# These variables are used in build_config.in.h
|
||||
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Windows"
|
||||
OR "${CMAKE_SYSTEM_NAME}" MATCHES "CYGWIN.*")
|
||||
|
||||
Reference in New Issue
Block a user