mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-19 02:11:21 +00:00
add cxx-compiler
input option
This commit is contained in:
parent
2a9ea8f96b
commit
0b67ed5990
@ -16,6 +16,9 @@ inputs:
|
||||
c-compiler:
|
||||
description: The preferred executable for compiling C language files
|
||||
required: false
|
||||
cxx-compiler:
|
||||
description: The preferred executable for compiling CXX language files
|
||||
required: false
|
||||
args:
|
||||
description: Additional arguments passed during CMake configuration
|
||||
required: false
|
||||
@ -30,6 +33,9 @@ runs:
|
||||
if [ -n '${{ inputs.c-compiler }}' ]; then
|
||||
CONFIGURE_ARGS="$CONFIGURE_ARGS -D CMAKE_C_COMPILER=${{ inputs.c-compiler }}"
|
||||
fi
|
||||
if [ -n '${{ inputs.cxx-compiler }}' ]; then
|
||||
CONFIGURE_ARGS="$CONFIGURE_ARGS -D CMAKE_CXX_COMPILER=${{ inputs.cxx-compiler }}"
|
||||
fi
|
||||
if [ -n '${{ inputs.args }}' ]; then
|
||||
CONFIGURE_ARGS="$CONFIGURE_ARGS ${{ inputs.args }}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user