View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0007157 | CMake | Modules | public | 2008-06-03 17:51 | 2008-07-03 16:00 |
|
Reporter | Rodolfo Schulz de Lima | |
Assigned To | Douglas Gregor | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | CMake-2-6 | |
|
Summary | 0007157: FindBoost doesn't find boost libraries infixed by gcc with version |
Description | In my boost installation, the boost libraries are named:
libboost_date_time-gcc43-mt-1_35.so.1.35.0
libboost_thread-gcc43-mt.so
an so on.
The FindBoost from trunk fail to parse the gcc version to come up with the -gcc43- part of the lib name. The problem is in the regex used. I didn't check if the same happens on cmake-2.6.
The attached patch should correct this. |
Tags | No tags attached. |
|
Attached Files | findboost_patch.diff [^] (916 bytes) 2008-06-03 17:51 [Show Content] [Hide Content]--- FindBoost.cmake 2008-06-03 17:33:39.000000000 -0300
+++ FindBoost_new.cmake 2008-06-03 18:46:48.000000000 -0300
@@ -354,7 +354,7 @@
ARGS --version
OUTPUT_VARIABLE _boost_COMPILER_VERSION
)
- STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9] .*" "\\1\\2"
+ STRING(REGEX REPLACE ".*([0-9])\\.([0-9])\\.[0-9].*" "\\1\\2"
_boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})
SET (_boost_COMPILER "-mgw${_boost_COMPILER_VERSION}")
ENDIF(MINGW)
@@ -374,7 +374,7 @@
ARGS --version
OUTPUT_VARIABLE _boost_COMPILER_VERSION
)
- STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9] .*" "\\1\\2"
+ STRING(REGEX REPLACE ".*([0-9])\\.([0-9])\\.[0-9].*" "\\1\\2"
_boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})
SET (_boost_COMPILER "-gcc${_boost_COMPILER_VERSION}")
ENDIF (NOT CMAKE_COMPILER_IS_GNUCC)
|
|