attempt 2 - sanitize output

This commit is contained in:
BlaiZephyr 2024-02-16 14:57:34 +01:00
parent dc85b2d73e
commit 39546b3deb

View file

@ -7,6 +7,7 @@ if(NOT CMAKE_CROSSCOMPILING)
execute_process(COMMAND ${MYSQL_CONFIG} execute_process(COMMAND ${MYSQL_CONFIG}
ARGS --include ARGS --include
OUTPUT_VARIABLE MY_TMP OUTPUT_VARIABLE MY_TMP
OUTPUT_STRIP_TRAILING_WHITESPACE
) )
string(REGEX REPLACE "-I([^ ]*)( .*)?" "\\1" MY_TMP "${MY_TMP}") string(REGEX REPLACE "-I([^ ]*)( .*)?" "\\1" MY_TMP "${MY_TMP}")
@ -16,6 +17,7 @@ if(NOT CMAKE_CROSSCOMPILING)
execute_process(COMMAND ${MYSQL_CONFIG} execute_process(COMMAND ${MYSQL_CONFIG}
ARGS --libs_r ARGS --libs_r
OUTPUT_VARIABLE MY_TMP OUTPUT_VARIABLE MY_TMP
OUTPUT_STRIP_TRAILING_WHITESPACE
) )
set(MYSQL_CONFIG_LIBRARIES "") set(MYSQL_CONFIG_LIBRARIES "")