mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-04-04 09:37:10 +02:00
cmake: use POSIX sed only for BSD/Mac OS compatibility
This commit is contained in:
parent
1315c26099
commit
9260925d5f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ else()
|
|||
set(PATH_TO_LIBGINT TRUE)
|
||||
if(GINT_CONFIG_PATH)
|
||||
execute_process(
|
||||
COMMAND sed -E "s/#define.*GINT_VERSION\\s+\"(\\S+)\"$/\\1/p; d" ${GINT_CONFIG_PATH}
|
||||
COMMAND sed "s/#define GINT_VERSION \"\\([^\"]\\{1,\\}\\)\"/\\1/p; d" ${GINT_CONFIG_PATH}
|
||||
OUTPUT_VARIABLE GINT_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue