[cmake-developers] [CMake 0014512]: cmp0022 does not warn
Mantis Bug Tracker
mantis at public.kitware.com
Fri Oct 25 11:35:18 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://cmake.org/Bug/view.php?id=14512
======================================================================
Reported By: Clinton Stimpson
Assigned To:
======================================================================
Project: CMake
Issue ID: 14512
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-10-25 11:35 EDT
Last Modified: 2013-10-25 11:35 EDT
======================================================================
Summary: cmp0022 does not warn
Description:
Using cmake 2.8.12 does not give a warning if the target property
LINK_INTERFACE_LIBRARIES is used with export().
Steps to Reproduce:
touch foo.cpp
touch bar.cpp
use the following for CMakeLists.txt:
cmake_minimum_required(VERSION 2.8)
add_library(foo SHARED foo.cpp)
add_library(bar SHARED bar.cpp)
target_link_libraries(bar foo)
set_target_properties(bar PROPERTIES LINK_INTERFACE_LIBRARIES "")
export(TARGETS bar foo FILE ${CMAKE_CURRENT_BINARY_DIR}/bar-export.cmake)
run cmake 2.8.12 on that, and there is no warning which is incorrect.
Change to
cmake_minimum_required(VERSION 2.8.12)
and there is an error, which is correct.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-10-25 11:35 Clinton StimpsonNew Issue
======================================================================
More information about the cmake-developers
mailing list