mirror of
https://github.com/reactos/CMake.git
synced 2025-02-19 11:00:58 +00:00

Policy CMP0002's OLD behavior allows duplicate non-custom targets. We test it with a project that builds two executables of the same name by setting CMP0002 to OLD.
6 lines
148 B
CMake
6 lines
148 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
project(Policy0002 C)
|
|
cmake_policy(SET CMP0002 OLD)
|
|
add_subdirectory(A)
|
|
add_executable(Policy0002 policy0002.c)
|