mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
attempt 2 - sanitize output
This commit is contained in:
parent
dc85b2d73e
commit
39546b3deb
|
@ -7,6 +7,7 @@ if(NOT CMAKE_CROSSCOMPILING)
|
|||
execute_process(COMMAND ${MYSQL_CONFIG}
|
||||
ARGS --include
|
||||
OUTPUT_VARIABLE MY_TMP
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
string(REGEX REPLACE "-I([^ ]*)( .*)?" "\\1" MY_TMP "${MY_TMP}")
|
||||
|
@ -16,6 +17,7 @@ if(NOT CMAKE_CROSSCOMPILING)
|
|||
execute_process(COMMAND ${MYSQL_CONFIG}
|
||||
ARGS --libs_r
|
||||
OUTPUT_VARIABLE MY_TMP
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
set(MYSQL_CONFIG_LIBRARIES "")
|
||||
|
|
Loading…
Reference in a new issue