Skip to content
Snippets Groups Projects
Commit b86a52dd authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

SCHWED-4354: Make compile version check more portable.

parent 18e65888
No related branches found
No related tags found
No related merge requests found
......@@ -859,7 +859,7 @@ endmacro()
#-------------------------------------------------------------------------------
function(get_compiler_version _OUTPUT_VERSION)
exec_program(${CMAKE_CXX_COMPILER}
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpfullversion -dumpversion
OUTPUT_VARIABLE _COMPILER_VERSION
)
string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment