mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
cmake: detect compiler install path in a LANG-agnostic way
This commit is contained in:
parent
8259e2dfc8
commit
0db7ae9e2b
2 changed files with 4 additions and 4 deletions
|
@ -26,8 +26,8 @@ set(FXSDK_CMAKE_MODULE_PATH "${FXSDK_CMAKE_MODULE_PATH}")
|
||||||
# Determine compiler install path
|
# Determine compiler install path
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${CMAKE_C_COMPILER} --print-search-dirs
|
COMMAND ${CMAKE_C_COMPILER} --print-search-dirs
|
||||||
COMMAND grep install
|
COMMAND head -n 1
|
||||||
COMMAND sed "s/install: //"
|
COMMAND sed -E "s/^[^:]+: //"
|
||||||
OUTPUT_VARIABLE FXSDK_COMPILER_INSTALL
|
OUTPUT_VARIABLE FXSDK_COMPILER_INSTALL
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,8 +26,8 @@ set(FXSDK_CMAKE_MODULE_PATH "${FXSDK_CMAKE_MODULE_PATH}")
|
||||||
# Determine compiler install path
|
# Determine compiler install path
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${CMAKE_C_COMPILER} --print-search-dirs
|
COMMAND ${CMAKE_C_COMPILER} --print-search-dirs
|
||||||
COMMAND grep install
|
COMMAND head -n 1
|
||||||
COMMAND sed "s/install: //"
|
COMMAND sed -E "s/^[^:]+: //"
|
||||||
OUTPUT_VARIABLE FXSDK_COMPILER_INSTALL
|
OUTPUT_VARIABLE FXSDK_COMPILER_INSTALL
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue