Skip to content

Commit

Permalink
Fix gcc test in Kernel link line.
Browse files Browse the repository at this point in the history
It needs to catch all of 4.4 so restricts to > 4.5
Refs #7798
  • Loading branch information
martyngigg committed Aug 8, 2014
1 parent f45fd59 commit 691e8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ set_property ( TARGET Kernel PROPERTY FOLDER "MantidFramework" )
# However, if we do not put stdc++ first on gcc 4.4 systems then things crash when an exceptions are thrown in Python
# If we are not using tcmalloc then the variable is empty and it makes no difference
if ( GCC_COMPILER_VERSION )
if ( GCC_COMPILER_VERSION VERSION_GREATER "4.4" )
if ( GCC_COMPILER_VERSION VERSION_GREATER "4.5" )
target_link_libraries ( Kernel ${TCMALLOC_LIBRARY} stdc++ )
else ()
target_link_libraries ( Kernel stdc++ ${TCMALLOC_LIBRARY} )
Expand Down

0 comments on commit 691e8a9

Please sign in to comment.