[cmake-developers] Severe behavioural change regressions in release branch

Brad King brad.king at kitware.com
Fri Oct 24 09:50:17 EDT 2014


On 10/23/2014 10:34 PM, Ben Boeckel wrote:
> implies the build isn't getting the include directories plumbed through
> properly.

I reproduced it locally far enough to find that kcoreaddons is not
installing headers like include/KF5/KCoreAddons/kpluginfactory.h
when built with 3.1 but is with 3.0.  I narrowed it down to a test
case using just ECM:

-------------------------------------------------------------------
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project(Minimal NONE)
file(WRITE "${CMAKE_CURRENT_SOURCE_DIR}/header.h" "header")
find_package(ECM 1.3.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(ECMGenerateHeaders)
ecm_generate_headers(headers
    HEADER_NAMES header
    REQUIRED_HEADERS headers
    )
message(WARNING " headers=[${headers}]")
ecm_generate_headers(headers
    HEADER_NAMES header
    REQUIRED_HEADERS headers
    )
message(FATAL_ERROR " headers=[${headers}]")
-------------------------------------------------------------------

With 3.0 we see the list of headers accumulate.  With 3.1 just the
first one works and the rest do not.

-Brad




More information about the cmake-developers mailing list