Try to fix the cmake 2.23 bug
This commit is contained in:
parent
70995c2908
commit
098b3ebdc4
8
builder
8
builder
|
@ -65,9 +65,9 @@ ROOT_DIR=$(pwd)
|
|||
BUILD_DIR=$ROOT_DIR/build
|
||||
ME=$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)
|
||||
|
||||
CMAKEARGS_DEBUG=" -DCMAKE_BUILD_TYPE=Debug"
|
||||
CMAKEARGS_DEBUG=("-DCMAKE_BUILD_TYPE=Debug")
|
||||
# Verbose -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
||||
CMAKEARGS=" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSERENE_CCACHE_DIR=$HOME/.ccache"
|
||||
CMAKEARGS=("-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" "-DSERENE_CCACHE_DIR=$HOME/.ccache")
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Helper functions
|
||||
|
@ -103,8 +103,8 @@ function popd_build() {
|
|||
function build-gen() {
|
||||
pushed_build
|
||||
info "Running: "
|
||||
info "cmake -G Ninja $CMAKEARGS $CMAKEARGS_DEBUG \"$*\" \"$ROOT_DIR\""
|
||||
cmake -G Ninja "$CMAKEARGS" "$CMAKEARGS_DEBUG" "$*" "$ROOT_DIR"
|
||||
info "cmake -G Ninja " "${CMAKEARGS[@]}" "${CMAKEARGS[@]}" "\"$*\" \"$ROOT_DIR\""
|
||||
cmake -G Ninja "${CMAKEARGS[@]}" "${CMAKEARGS_DEBUG[@]}" "$*" "$ROOT_DIR"
|
||||
popd_build
|
||||
}
|
||||
|
||||
|
|
|
@ -179,8 +179,8 @@ const char *Reader::nextChar(bool skipWhitespace, unsigned count) {
|
|||
return c;
|
||||
};
|
||||
|
||||
bool Reader::isEndOfBuffer(const unsigned char *c) {
|
||||
return *c == '\0' || currentPos > buf.size() || *c == EOF;
|
||||
bool Reader::isEndOfBuffer(const char *c) {
|
||||
return *c == '\0' || currentPos > buf.size() || ((const int)*c == EOF);
|
||||
};
|
||||
|
||||
Location Reader::getCurrentLocation() { return currentLocation.clone(); };
|
||||
|
|
Loading…
Reference in New Issue