View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0007864 | CMake | Modules | public | 2008-10-28 02:56 | 2009-02-23 22:49 |
|
Reporter | phils | |
Assigned To | Philip Lowman | |
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | CMake-2-6 | |
Target Version | | Fixed in Version | CMake-2-6 | |
|
Summary | 0007864: FindBoost.cmake Boost_LIBRARY_DIRS |
Description | The variable Boost_LIBRARY_DIRS contains the paths "optimized" and "debug" if both, debug and release libraries are found. The appended patch ( against CVS HEAD ) eliminates paths that aren't real paths. This works for me on Windows and several Linux systems. |
Additional Information | It's not really a problem, but the patch shortens the linker command line... |
Tags | No tags attached. |
|
Attached Files | FindBoost.cmake.patch [^] (1,135 bytes) 2008-10-28 02:56 [Show Content] [Hide Content]Index: Modules/FindBoost.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindBoost.cmake,v
retrieving revision 1.15
diff -a -u -r1.15 FindBoost.cmake
--- Modules/FindBoost.cmake 9 Oct 2008 21:04:11 -0000 1.15
+++ Modules/FindBoost.cmake 21 Oct 2008 12:32:50 -0000
@@ -173,7 +173,14 @@
IF (Boost_${basename}_LIBRARY)
SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE FILEPATH "The Boost ${basename} library")
- GET_FILENAME_COMPONENT(Boost_LIBRARY_DIRS "${Boost_${basename}_LIBRARY}" PATH)
+
+ FOREACH(COMPONENT ${Boost_${basename}_LIBRARY})
+ GET_FILENAME_COMPONENT(COMPONENT_LIBRARY_DIR ${COMPONENT} PATH)
+ SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} ${COMPONENT_LIBRARY_DIR})
+ ENDFOREACH(COMPONENT)
+
+ LIST(REMOVE_DUPLICATES Boost_LIBRARY_DIRS)
+
SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} CACHE FILEPATH "Boost library directory")
SET(Boost_${basename}_FOUND ON CACHE INTERNAL "Whether the Boost ${basename} library found")
ENDIF (Boost_${basename}_LIBRARY)
|
|