mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06: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.
15 lines
312 B
CMake
15 lines
312 B
CMake
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
project(PositionIndependentTargets)
|
|
|
|
include(CheckCXXSourceCompiles)
|
|
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}") # For pic_test.h
|
|
|
|
add_subdirectory(global)
|
|
add_subdirectory(targets)
|
|
add_subdirectory(interface)
|
|
|
|
add_executable(PositionIndependentTargets main.cpp)
|