d997c20470
Update to v7.900.1 OBS-URL: https://build.opensuse.org/request/show/494999 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/armadillo?expand=0&rev=209
89 lines
2.5 KiB
Diff
89 lines
2.5 KiB
Diff
Index: armadillo-7.900.1/tests/Makefile.in
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ armadillo-7.900.1/tests/Makefile.in
|
|
@@ -0,0 +1,38 @@
|
|
+
|
|
+LIB_FLAGS = -L@PROJECT_SOURCE_DIR@ -larmadillo
|
|
+
|
|
+ifeq (${ARMA_USE_LAPACK},true)
|
|
+ LIB_FLAGS += -llapack
|
|
+endif
|
|
+ifeq (${ARMA_USE_BLAS},true)
|
|
+ LIB_FLAGS += -lblas
|
|
+endif
|
|
+ifeq (${ARMA_USE_SUPERLU},true)
|
|
+ LIB_FLAGS += -lsuperlu
|
|
+endif
|
|
+ifeq (${ARMA_USE_ARPACK},true)
|
|
+ LIB_FLAGS += -larpack
|
|
+endif
|
|
+
|
|
+#LIB_FLAGS = -lblas -llapack
|
|
+#LIB_FLAGS = -lopenblas -llapack
|
|
+
|
|
+CXX_FLAGS = -I@PROJECT_SOURCE_DIR@/include -std=c++11 -Wshadow -Wall -pedantic -O0
|
|
+#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0 -DARMA_DONT_USE_WRAPPER
|
|
+#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O2
|
|
+
|
|
+OBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
|
|
+
|
|
+%.o: %.cpp $(DEPS)
|
|
+ $(CXX) $(CXX_FLAGS) -o $@ -c $<
|
|
+
|
|
+main: $(OBJECTS)
|
|
+ $(CXX) $(CXX_FLAGS) -o $@ $(OBJECTS) $(LIB_FLAGS)
|
|
+
|
|
+
|
|
+all: main
|
|
+
|
|
+.PHONY: clean
|
|
+
|
|
+clean:
|
|
+ rm -f main *.o
|
|
Index: armadillo-7.900.1/CMakeLists.txt
|
|
===================================================================
|
|
--- armadillo-7.900.1.orig/CMakeLists.txt
|
|
+++ armadillo-7.900.1/CMakeLists.txt
|
|
@@ -437,6 +437,10 @@ set(ARMADILLO_LIB_DIR "${PROJECT_BI
|
|
set(ARMADILLO_CMAKE_DIR "${PROJECT_BINARY_DIR}")
|
|
|
|
|
|
+# Configure tests/Makefile.in for running tests without installing first
|
|
+message(STATUS "Configuring tests/Makefile")
|
|
+configure_file(${PROJECT_SOURCE_DIR}/tests/Makefile.in ${PROJECT_SOURCE_DIR}/tests/Makefile)
|
|
+
|
|
message(STATUS "Generating '${PROJECT_BINARY_DIR}/ArmadilloConfig.cmake'")
|
|
# copy/change config and configVersion file (modify only the @xyz@ variables)
|
|
configure_file(${PROJECT_SOURCE_DIR}/cmake_aux/InstallFiles/ArmadilloConfig.cmake.in
|
|
Index: armadillo-7.900.1/tests/Makefile
|
|
===================================================================
|
|
--- armadillo-7.900.1.orig/tests/Makefile
|
|
+++ armadillo-7.900.1/tests/Makefile
|
|
@@ -1,25 +0,0 @@
|
|
-
|
|
-LIB_FLAGS = -larmadillo
|
|
-#LIB_FLAGS = -lblas -llapack
|
|
-#LIB_FLAGS = -lopenblas -llapack
|
|
-
|
|
-CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0
|
|
-#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0 -fopenmp
|
|
-#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0 -DARMA_DONT_USE_WRAPPER
|
|
-#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O2
|
|
-
|
|
-OBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
|
|
-
|
|
-%.o: %.cpp $(DEPS)
|
|
- $(CXX) $(CXX_FLAGS) -o $@ -c $< $
|
|
-
|
|
-main: $(OBJECTS)
|
|
- $(CXX) $(CXX_FLAGS) -o $@ $(OBJECTS) $(LIB_FLAGS)
|
|
-
|
|
-
|
|
-all: main
|
|
-
|
|
-.PHONY: clean
|
|
-
|
|
-clean:
|
|
- rm -f main *.o
|