mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
Merge topic 'ghs_generator_bashism_fix'
172475b2c5 GHS: Remove bashism from custom command shell scripts
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6409
This commit is contained in:
@@ -376,7 +376,7 @@ void cmGhsMultiTargetGenerator::WriteCustomCommandsHelper(
|
||||
#ifdef _WIN32
|
||||
std::string check_error = "if %errorlevel% neq 0 exit /b %errorlevel%";
|
||||
#else
|
||||
std::string check_error = "if [[ $? -ne 0 ]]; then exit 1; fi";
|
||||
std::string check_error = "if [ $? -ne 0 ]; then exit 1; fi";
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user