diff -uNr strigi-0.5.7.orig/cmake/MacroCheckGccVisibility.cmake strigi-0.5.7/cmake/MacroCheckGccVisibility.cmake
old
|
new
|
|
13 | 13 | check_cxx_compiler_flag(-fvisibility=hidden ${GccVisibility}) |
14 | 14 | |
15 | 15 | # get the gcc version |
16 | | exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info) |
| 16 | exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info) |
17 | 17 | |
18 | 18 | string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") |
19 | 19 | # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here: |