MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014450 | CMake | CMake | public | 2013-10-01 10:55 | 2014-03-05 09:58 |
| Reporter | georgeg | ||||
| Assigned To | |||||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | won't fix | ||
| Platform | Linux | OS | opensuse | OS Version | 12 |
| Product Version | CMake 2.8.10.2 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0014450: CMAKE_INSTALL_PREFIX scope | ||||
| Description | The goal is that to install subdirectory in a custom path (usualy a child of the top directory install path) the top directory has no sources by itself but is only a container for the subdirectories (the root of a project with other subprojects) running make install in top directory will not obey the CMAKE_INSTALL_PREFIX that we set in each subdirectory. instead, the default top directory CMAKE_INSTALL_PREFIX value is used | ||||
| Steps To Reproduce | create one subdirectory and 2 cmake lists: CMakeLists.txt: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(cmaketest) ADD_SUBDIRECTORY(1) 1/CMakeLists.txt: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(cmaketest1) SET(CMAKE_INSTALL_PREFIX /tmp/cmaketest/1) MESSAGE ("1: CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}") INSTALL(FILES 1.h DESTINATION include) | ||||
| Additional Information | note the directory "1" must be created and a demo header file in it: "1.h" | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-10-01 10:55 | georgeg | New Issue | |||
| 2013-10-01 11:21 | Brad King | Note Added: 0033959 | |||
| 2013-10-01 11:21 | Brad King | Status | new => resolved | ||
| 2013-10-01 11:21 | Brad King | Resolution | open => won't fix | ||
| 2014-03-05 09:58 | Robert Maynard | Note Added: 0035273 | |||
| 2014-03-05 09:58 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||