Line 0
Link Here
|
|
|
1 |
--- CMakeLists.txt.orig 2011-09-02 23:11:27.000000000 +0200 |
2 |
+++ CMakeLists.txt 2011-09-02 23:12:10.000000000 +0200 |
3 |
@@ -256,11 +256,12 @@ |
4 |
# Detect GNU version: |
5 |
# ---------------------------------------------------------------------------- |
6 |
if(CMAKE_COMPILER_IS_GNUCXX) |
7 |
- execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version |
8 |
+ string(REGEX REPLACE "[ ]+" ";" _CMAKE_CXX_COMPILER_ARG1 "${CMAKE_CXX_COMPILER_ARG1}") |
9 |
+ execute_process(COMMAND ${CMAKE_CXX_COMPILER} ${_CMAKE_CXX_COMPILER_ARG1} --version |
10 |
OUTPUT_VARIABLE CMAKE_OPENCV_GCC_VERSION_FULL |
11 |
OUTPUT_STRIP_TRAILING_WHITESPACE) |
12 |
|
13 |
- execute_process(COMMAND ${CMAKE_CXX_COMPILER} -v |
14 |
+ execute_process(COMMAND ${CMAKE_CXX_COMPILER} ${_CMAKE_CXX_COMPILER_ARG1} -v |
15 |
ERROR_VARIABLE CMAKE_OPENCV_GCC_INFO_FULL |
16 |
OUTPUT_STRIP_TRAILING_WHITESPACE) |
17 |
|