Use CMake's build and install functionality
This allows simplification, this functionality was added long ago to CMake. Further motivation is to be able to re-direct the installation, make/ninja install allow this by setting DESTDIR but this generally doesnt work well with window paths (see [1]). [1] - https://cmake.org/cmake/help/latest/envvar/DESTDIR.html#envvar:DESTDIR
This commit is contained in:
1 parent
97cd12a63a
commit
d0a03c46c0
5 files changed
+10
-18
No files matched your search
+2
-3
@@ -53,7 +53,6 @@ fi
|
||||
|
||||
if command -v ninja >/dev/null; then
|
||||
CMAKE_GENERATOR="Ninja"
|
||||
BUILDCMD=ninja
|
||||
else
|
||||
: ${CORES:=$(nproc 2>/dev/null)}
|
||||
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
|
||||
@@ -64,7 +63,6 @@ else
|
||||
CMAKE_GENERATOR="MSYS Makefiles"
|
||||
;;
|
||||
esac
|
||||
BUILDCMD=make
|
||||
fi
|
||||
|
||||
export LLVM_DIR="$PREFIX"
|
||||
@@ -147,4 +145,5 @@ cmake \
|
||||
$CMAKEFLAGS \
|
||||
..
|
||||
|
||||
$BUILDCMD ${CORES:+-j${CORES}} install/strip
|
||||
cmake --build . ${CORES:+-j${CORES}}
|
||||
cmake --install . --strip
|
||||
Reference in new issue
Block a user