CMake 3.12.0: CMP0048 warning on second run
It was reported on the mailing list:
that a CMP0048
warning appears on the second run of this project.
The CMakeLists.txt
:
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
include(foo)
test_project(runtime TRUE VERSION 1.0)
The foo.cmake
:
macro(test_project name target)
project(${name} ${ARGN})
endmacro(test_project)