[cmake-developers] [CMake 0015472]: CMake does not deduplicate defines which have the same name but different value
Mantis Bug Tracker
mantis at public.kitware.com
Mon Mar 23 20:15:25 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15472
======================================================================
Reported By: Stephen Kelly
Assigned To:
======================================================================
Project: CMake
Issue ID: 15472
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-03-24 01:15 CET
Last Modified: 2015-03-24 01:15 CET
======================================================================
Summary: CMake does not deduplicate defines which have the
same name but different value
Description:
cmake_minimum_required(VERSION 2.8)
project(cmaketest)
add_executable(mn main.cpp)
target_compile_definitions(mn PRIVATE TESTD=1 TESTD=3)
set_source_files_properties(main.cpp PROPERTIES COMPILE_DEFINITIONS TESTD=5)
CMake currently passes all of the defines, and the compiler (gcc at least) warns
about redefinition.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-03-24 01:15 Stephen Kelly New Issue
======================================================================
More information about the cmake-developers
mailing list