[cmake-developers] [CMake 0015753]: CMake cannot detect changes in nested header files when using '-iquote'

Mantis Bug Tracker mantis at public.kitware.com
Mon Sep 21 08:49:13 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15753 
====================================================================== 
Reported By:                danilcha
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15753
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-09-21 08:49 EDT
Last Modified:              2015-09-21 08:49 EDT
====================================================================== 
Summary:                    CMake cannot detect changes in nested header files
when using '-iquote'
Description: 
Create a new project with such CMakeLists.txt:

cmake_minimum_required(VERSION 3.3)
project(test)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -iquote ${CMAKE_CURRENT_SOURCE_DIR}")
add_executable(test-iquote main.cpp dir/1.h dir/2.h)

And such structure:

CMakeLists.txt
Main.cpp          (contains #include "dir/1.h")
dir\
    1.h           (contains #include "dir/2.h")
    2.h

Build. Then modify 2.h. Build again. Nothing will happen, it will just say
'[100%] Built target test-iquote'. 

Additional Information: 
Tried with both clang and GCC. GNU Make 3.81.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-09-21 08:49 danilcha       New Issue                                    
======================================================================



More information about the cmake-developers mailing list