The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14781 ====================================================================== Reported By: Ruslan Baratov Assigned To: ====================================================================== Project: CMake Issue ID: 14781 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2014-03-01 03:16 EST Last Modified: 2014-03-01 03:16 EST ====================================================================== Summary: find_package don't respect variable CMAKE_INSTALL_PREFIX properly Description: On windows find_package command detect FooConfig.cmake file inside temporary build directory instead of CMAKE_INSTALL_PREFIX path.
Steps to Reproduce: 1) build Foo in '_build/Foo' directory 2) install Foo with '_install' prefix 3) build Boo in '_build/Boo' directory Projects layout: - Foo/CMakeLists.txt - Boo/CMakeLists.txt - _builds/Foo/FooConfig.cmake # temp config build - _builds/Boo - _install/lib/cmake/Foo/FooConfig.cmake # real config Output: CMake Error at /.../_builds/Foo/FooConfig.cmake:30 (include): include could not find load file: /.../lib/cmake/Foo/FooTargets.cmake Additional Information: Works fine: * if remove '_build/Foo' directory after Foo install * on Mac OS X CMake version 3.0.0-rc1 Example available here: * https://github.com/forexample/package-example ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-03-01 03:16 Ruslan Baratov New Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
