[CMake] Regression in INCLUDE_DIRECTORIES command between cmake 2.8.7 and 2.8.8?

David Cole dlrdave at aol.com
Mon Apr 15 19:03:29 EDT 2013


It removes duplicates during generation, though. You shouldn't see duplicates in the generated make files or project files...


On Apr 15, 2013, at 5:34 PM, Marcel Loose <marcel.loose at zonnet.nl> wrote:

> Hi all,
> 
> I noticed that, starting from cmake 2.8.8, INCLUDE_DIRECTORIES no longer remove duplicates. I this a regression?
> 
> $ cat ../CMakeLists.txt
> cmake_minimum_required(VERSION 2.6)
> project(TestIncludeDirectories)
> 
> get_directory_property(_inc_dirs INCLUDE_DIRECTORIES)
> message(STATUS "INCLUDE_DIRECTORIES=${_inc_dirs}")
> 
> include_directories(/usr/include)
> get_directory_property(_inc_dirs INCLUDE_DIRECTORIES)
> message(STATUS "INCLUDE_DIRECTORIES=${_inc_dirs}")
> 
> include_directories(/usr/include)
> get_directory_property(_inc_dirs INCLUDE_DIRECTORIES)
> message(STATUS "INCLUDE_DIRECTORIES=${_inc_dirs}")
> 
> $ ~/x86_64/usr/local/cmake-2.8.7/bin/cmake ..
> -- INCLUDE_DIRECTORIES=
> -- INCLUDE_DIRECTORIES=/usr/include
> -- INCLUDE_DIRECTORIES=/usr/include
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/marcel/temp/cmake/include_directories/build
> 
> $ ~/x86_64/usr/local/cmake-2.8.8/bin/cmake ..
> -- INCLUDE_DIRECTORIES=
> -- INCLUDE_DIRECTORIES=/usr/include
> -- INCLUDE_DIRECTORIES=/usr/include;/usr/include
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/marcel/temp/cmake/include_directories/build
> 
> Best regards,
> Marcel Loose.
> 
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list