-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfigure.ucrt
More file actions
41 lines (34 loc) · 1.05 KB
/
configure.ucrt
File metadata and controls
41 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
: ${R_HOME:=$(R RHOME)}
if test -z "${R_HOME}"; then
echo "could not determine R_HOME"
exit 1
fi
CC=`"${R_HOME}/bin/R" CMD config CC`
CXX=`"${R_HOME}/bin/R" CMD config CXX`
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
LDFLAGS=`"${R_HOME}/bin/R" CMD config LDFLAGS`
FLIBS=`"${R_HOME}/bin/R" CMD config FLIBS`
CFLAGS="$CPPFLAGS $CFLAGS"
CXXFLAGS="$CPPFLAGS $CXXFLAGS"
RTOOLS=`"${R_HOME}/bin/R" CMD config R_TOOLS_SOFT`
FC=`"${R_HOME}/bin/R" CMD config FC`
cd src
mkdir -p build && cd build
cmake -S ../planc \
-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_FLAGS_INIT="" \
-DCMAKE_CXX_FLAGS_INIT="" \
-DRCPP_FLIBS="$FLIBS" \
-DCMAKE_POSITION_INDEPENDENT_CODE:bool=ON \
-DR_HOME="$R_HOME" \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_RCPP=ON \
-DCMAKE_INSTALL_PREFIX=${R_PACKAGE_DIR}
echo "" >> _deps/highfive-src/include/highfive/bits/H5Friends.hpp
cmake --build .
cmake --install .
sed -i ' ' nmf/nmflib_export.h