File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,9 @@ macro(_mysql_config _var _regex _opt)
344
344
string (REGEX MATCHALL "${_regex} ([^ ]+)" _mysql_config_output "${_mysql_config_output} " )
345
345
string (REGEX REPLACE "^[ \t ]+" "" _mysql_config_output "${_mysql_config_output} " )
346
346
string (REGEX REPLACE "${_regex} " "" _mysql_config_output "${_mysql_config_output} " )
347
+ IF (CMAKE_SYSTEM_NAME MATCHES "SunOS" )
348
+ string (REGEX REPLACE " -latomic" "" _mysql_config_output "${_mysql_config_output} " )
349
+ ENDIF ()
347
350
separate_arguments (_mysql_config_output )
348
351
set (${_var} ${_mysql_config_output} )
349
352
endmacro ()
@@ -370,6 +373,9 @@ macro(_mysql_config_replace _var _regex1 _replace _regex2 _opt)
370
373
string (REGEX REPLACE "^[ \t ]+" "" _mysql_config_output "${_mysql_config_output} " )
371
374
string (REGEX REPLACE "${_regex2} " "" _mysql_config_output "${_mysql_config_output} " )
372
375
string (REGEX REPLACE "${_regex1} " "${_replace} " _mysql_config_output "${_mysql_config_output} " )
376
+ IF (CMAKE_SYSTEM_NAME MATCHES "SunOS" )
377
+ string (REGEX REPLACE " -latomic" "" _mysql_config_output "${_mysql_config_output} " )
378
+ ENDIF ()
373
379
separate_arguments (_mysql_config_output )
374
380
set (${_var} ${_mysql_config_output} )
375
381
endmacro ()
You can’t perform that action at this time.
0 commit comments