]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Vc/cmake/AddCompilerFlag.cmake
- support compilation with GCC 4.1 and 4.2
[u/mrichter/AliRoot.git] / Vc / cmake / AddCompilerFlag.cmake
index 30eb7e8fd8c7b8f5944f6d5b8f1bfb7b5254d367..75ad694f15467f35fbe42a72a82ddf04ee0da878 100644 (file)
@@ -2,7 +2,7 @@ get_filename_component(_currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH)
 include("${_currentDir}/CheckCCompilerFlag.cmake")
 include("${_currentDir}/CheckCXXCompilerFlag.cmake")
 macro(AddCompilerFlag _flag)
-   string(REGEX REPLACE "[-+/:= ]" "_" _flag_esc "${_flag}")
+   string(REGEX REPLACE "[-.+/:= ]" "_" _flag_esc "${_flag}")
    check_c_compiler_flag("${_flag}" check_c_compiler_flag_${_flag_esc})
    check_cxx_compiler_flag("${_flag}" check_cxx_compiler_flag_${_flag_esc})