[cmake-developers] [CMake 0012188]: FindBoost: ${Boost_LIBRARIES} contains extra 'optimized' and 'debug' key words making impossible install

Mantis Bug Tracker mantis at public.kitware.com
Fri May 13 11:23:19 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12188 
====================================================================== 
Reported By:                sutasu
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12188
Category:                   Modules
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2011-05-13 16:23 WAT
Last Modified:              2011-05-13 16:23 WAT
====================================================================== 
Summary:                    FindBoost: ${Boost_LIBRARIES} contains extra
'optimized' and 'debug' key words making impossible install
Description: 
'optimized' and 'debug' key words are present in ${Boost_LIBRARIES} variable
making impossible to use it in install command

Steps to Reproduce: 
Following test case fails:

cmake_minimum_required(VERSION 2.6)
project( test )
set (Boost_REALPATH "1")
find_package(Boost REQUIRED system date_time filesystem thread regex)
message("${Boost_LIBRARIES}")
add_executable (test test.cpp )
target_link_libraries (test ${Boost_LIBRARIES} )
install ( FILES ${Boost_LIBRARIES} DESTINATION bin )
install ( TARGETS test DESTINATION bin )
include (CPack)


$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.42.0
-- Found the following Boost libraries:
--   system
--   date_time
--   filesystem
--   thread
--   regex
optimized;/usr/lib/libboost_system.so.1.42.0;debug;/usr/lib/libboost_system.so.1
.42.0;optimized;/usr/lib/libboost_date_time.so.1.42.0;debug;/usr/lib/libboost_da
te_time.so.1.42.0;optimized;/usr/lib/libboost_filesystem.so.1.42.0;debug;/usr/li
b/libboost_filesystem.so.1.42.0;optimized;/usr/lib/libboost_thread.so.1.42.0;deb
ug;/usr/lib/libboost_thread.so.1.42.0;optimized;/usr/lib/libboost_regex.so.1.42.
0;debug;/usr/lib/libboost_regex.so.1.42.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stanislav/cmake_test/build



$ make
Scanning dependencies of target test
[100%] Building CXX object CMakeFiles/test.dir/test.cpp.o
Linking CXX executable test
[100%] Built target test


$ cpack -G TGZ CPackConfig.cmake
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: test
CPack: - Install project: test
CMake Error at /home/stanislav/cmake_test/build/cmake_install.cmake:36 (FILE):
  file INSTALL cannot find "/home/stanislav/cmake_test/optimized".

CPack Error: Error when generating package: test


Additional Information: 
test case attached
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-13 16:23 sutasu         New Issue                                    
2011-05-13 16:23 sutasu         File Added: tst.tgz                          
======================================================================




More information about the cmake-developers mailing list