mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00

Since 3.19, CMake generates a deprecation warning when using a minimum version less than 2.8.12. This eliminates those warnings generated during tests, which are typically hidden from the user and developer but are being generated nonetheless.
8 lines
116 B
CMake
8 lines
116 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
project(QtAutomocNoQt)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
add_executable(hello main.c)
|