MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0009656 | CMake | CMake | public | 2009-10-04 12:26 | 2009-10-05 11:48 | |||||
Reporter | Modestas Vainius | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-8 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0009656: Enabling C adds duplicates in CMAKE_SYSTEM_{PREFIX,INCLUDE}_PATH | |||||||||
Description | Contents of CMAKE_SYSTEM_{PREFIX,INCLUDE}_PATH are duplicated if more than one language is enabled. This is probably because Modules/Platform/UnixPaths.cmake gets reincluded for each language. CMake 2.8-rc2 on Debian GNU/Linux | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | One language ------------ project(testproject C) cmake_minimum_required(VERSION 2.6) FOREACH(var ${CMAKE_SYSTEM_PREFIX_PATH}) MESSAGE(STATUS "CMAKE_SYSTEM_PREFIX_PATH = " ${var}) ENDFOREACH(var) MESSAGE(STATUS) FOREACH(var ${CMAKE_SYSTEM_INCLUDE_PATH}) MESSAGE(STATUS "CMAKE_SYSTEM_INCLUDE_PATH = " ${var}) ENDFOREACH(var) $ rm -f CMakeCache.txt ; cmake . -- The C compiler identification is GNU -- Check for working C compiler: /mnt/sda2/usr/bin/gcc -- Check for working C compiler: /mnt/sda2/usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- CMAKE_SYSTEM_PREFIX_PATH = / -- CMAKE_SYSTEM_PREFIX_PATH = /usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- CMAKE_SYSTEM_PREFIX_PATH = /mnt/sda2/usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- CMAKE_SYSTEM_PREFIX_PATH = / -- CMAKE_SYSTEM_PREFIX_PATH = /usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- CMAKE_SYSTEM_PREFIX_PATH = /mnt/sda2/usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/w32api -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/X11R6/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/X11 -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/local/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/pkg/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/csw/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/openwin/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/w32api -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/X11R6/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/X11 -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/local/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/pkg/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/csw/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/openwin/include -- Configuring done -- Generating done -- Build files have been written to: /home/modax/test Two languages ------------- project(testproject C CXX) cmake_minimum_required(VERSION 2.6) FOREACH(var ${CMAKE_SYSTEM_PREFIX_PATH}) MESSAGE(STATUS "CMAKE_SYSTEM_PREFIX_PATH = " ${var}) ENDFOREACH(var) MESSAGE(STATUS) FOREACH(var ${CMAKE_SYSTEM_INCLUDE_PATH}) MESSAGE(STATUS "CMAKE_SYSTEM_INCLUDE_PATH = " ${var}) ENDFOREACH(var) $ rm -f CMakeCache.txt ; cmake . -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /mnt/sda2/usr/bin/gcc -- Check for working C compiler: /mnt/sda2/usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /mnt/sda2/usr/bin/c++ -- Check for working CXX compiler: /mnt/sda2/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- CMAKE_SYSTEM_PREFIX_PATH = / -- CMAKE_SYSTEM_PREFIX_PATH = /usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- CMAKE_SYSTEM_PREFIX_PATH = /mnt/sda2/usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- CMAKE_SYSTEM_PREFIX_PATH = / -- CMAKE_SYSTEM_PREFIX_PATH = /usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- CMAKE_SYSTEM_PREFIX_PATH = /mnt/sda2/usr -- CMAKE_SYSTEM_PREFIX_PATH = /usr/local -- -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/w32api -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/X11R6/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/X11 -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/local/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/pkg/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/csw/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/openwin/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/w32api -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/X11R6/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/include/X11 -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/local/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/pkg/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/csw/include -- CMAKE_SYSTEM_INCLUDE_PATH = /opt/include -- CMAKE_SYSTEM_INCLUDE_PATH = /usr/openwin/include -- Configuring done -- Generating done -- Build files have been written to: /home/modax/test | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2009-10-04 12:26 | Modestas Vainius | New Issue | ||||||||
2009-10-04 15:18 | Bill Hoffman | Status | new => assigned | |||||||
2009-10-04 15:18 | Bill Hoffman | Assigned To | => Brad King | |||||||
2009-10-04 15:28 | Modestas Vainius | Note Added: 0017938 | ||||||||
2009-10-05 11:22 | Brad King | Relationship added | related to 0004772 | |||||||
2009-10-05 11:28 | Brad King | Note Added: 0017948 | ||||||||
2009-10-05 11:30 | Brad King | Note Added: 0017949 | ||||||||
2009-10-05 11:30 | Brad King | Summary | The more languages are enabled the more dupes in CMAKE_SYSTEM_{PREFIX,INCLUDE}_PATH => Enabling C adds duplicates in CMAKE_SYSTEM_{PREFIX,INCLUDE}_PATH | |||||||
2009-10-05 11:48 | Brad King | Note Added: 0017951 | ||||||||
2009-10-05 11:48 | Brad King | Status | assigned => closed | |||||||
2009-10-05 11:48 | Brad King | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|