MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014634 | CMake | CMake | public | 2013-12-06 07:30 | 2016-06-10 14:31 |
Reporter | Stephen Kelly | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.0 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014634: Setting CMAKE_BUILD_TYPE in a subdirectory breaks installation of exported targets. | ||||
Description | stephen@hal:~/dev/src/kf5/tier1/build{frameworks}$ cat ../CMakeLists.txt cmake_minimum_required(VERSION 2.8.12) project(myproj) add_subdirectory(src) Qt( base ) KDE ( ) stephen@hal:~/dev/src/kf5/tier1/build{frameworks}$ cat ../src/CMakeLists.txt set(CMAKE_BUILD_TYPE RelWithDebInfo) add_library(Foo SHARED foo.cpp) install(TARGETS Foo EXPORT FooTargets DESTINATION lib) install(EXPORT FooTargets DESTINATION "lib/cmake/Foo" FILE FooTargets.cmake NAMESPACE KF5:: ) Qt( base ) KDE ( ) stephen@hal:~/dev/src/kf5/tier1/build{frameworks}$ rm -rf * Qt( base ) KDE ( ) stephen@hal:~/dev/src/kf5/tier1/build{frameworks}$ cmake .. -DCMAKE_INSTALL_PREFIX=prefix -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is GNU 4.8.1 -- Check for working C compiler: /usr/lib/icecc/bin/cc -- Check for working C compiler: /usr/lib/icecc/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/lib/icecc/bin/c++ -- Check for working CXX compiler: /usr/lib/icecc/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/stephen/dev/src/kf5/tier1/build Qt( base ) KDE ( ) stephen@hal:~/dev/src/kf5/tier1/build{frameworks}$ make makeobj[0]: Entering directory `/home/stephen/dev/src/kf5/tier1/build' Scanning dependencies of target Foo [100%] Building CXX object src/CMakeFiles/Foo.dir/foo.cpp.o Linking CXX shared library libFoo.so [100%] Built target Foo makeobj[0]: Leaving directory `/home/stephen/dev/src/kf5/tier1/build' Qt( base ) KDE ( ) stephen@hal:~/dev/src/kf5/tier1/build{frameworks}$ mi makeobj[0]: Entering directory `/home/stephen/dev/src/kf5/tier1/build' [100%] Built target Foo Install the project... -- Install configuration: "" -- Installing: /home/stephen/dev/src/kf5/tier1/build/prefix/lib/libFoo.so -- Installing: /home/stephen/dev/src/kf5/tier1/build/prefix/lib/cmake/Foo/FooTargets.cmake makeobj[0]: Leaving directory `/home/stephen/dev/src/kf5/tier1/build' No config-specific FooTargets-*.cmake file is installed, so the installation is not usable. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-12-06 07:30 | Stephen Kelly | New Issue | |||
2013-12-09 15:03 | kentwilliams | Note Added: 0034768 | |||
2014-08-23 21:49 | Andreas Schäfer | Note Added: 0036670 | |||
2014-08-23 21:49 | Andreas Schäfer | Note Edited: 0036670 | bug_revision_view_page.php?bugnote_id=36670#r1558 | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042444 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|