Skip to content
Snippets Groups Projects
Commit 34ed3049 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Need -fexperimental-library on macOS

parent 4260ce68
No related branches found
No related tags found
No related merge requests found
Pipeline #26987 skipped
......@@ -4,6 +4,8 @@ include ${FSLCONFDIR}/default.mk
PROJNAME = test-newimage
TESTXFILES = test-newimage
all: ${TESTXFILES}
LIBS = -lfsl-newimage -lfsl-miscmaths -lfsl-NewNifti \
-lfsl-cprob -lfsl-utils -lfsl-znz -lboost_unit_test_framework -lpthread
......@@ -28,16 +30,16 @@ ifeq ($(SYSTYPE), Darwin)
RPATH := -Wl,-rpath,'@executable_path/..'
endif
all: ${TESTXFILES}
USRCXXFLAGS = -I..
# Need this flag to enable std::execution
# policies in clang
ifeq ($(SYSTYPE), Darwin)
USRCXXFLAGS += -fexperimental-library
endif
OBJS := $(wildcard test_*.cc)
OBJS := $(OBJS:%.cc=%.o)
# We add -I.., -L.., -Wl,-rpath so that
# in-source builds take precedence over
# $FSLDEVDIR/$FSLDIR
%.o: %.cc
$(CXX) -I.. ${CXXFLAGS} -c -o $@ $<
test-newimage: ${OBJS}
$(CXX) -o $@ $^ -L.. ${RPATH} ${LDFLAGS}
$(CXX) ${CXXFLAGS} -o $@ $^ -L.. ${RPATH} ${LDFLAGS}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment