mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-06 16:09:05 +00:00
add /usr/local/bin on darwin
This commit is contained in:
parent
2934cf3e8e
commit
2d649c808d
1 changed files with 12 additions and 12 deletions
18
Makefile
18
Makefile
|
@ -263,26 +263,26 @@ MK_CFLAGS = -std=c11 -fPIC
|
|||
MK_CXXFLAGS = -std=c++11 -fPIC
|
||||
MK_NVCCFLAGS = -std=c++11
|
||||
|
||||
MK_CPPFLAGS += -isystem /usr/local/include
|
||||
MK_LDFLAGS += -L/usr/local/lib -lzmq
|
||||
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
MK_CPPFLAGS += -isystem /opt/homebrew/include
|
||||
MK_LDFLAGS += -L/opt/homebrew/lib -lzmq
|
||||
else ifeq ($(UNAME_S),Linux)
|
||||
MK_CPPFLAGS += -isystem /usr/local/include
|
||||
MK_LDFLAGS += -L/usr/local/lib -lzmq
|
||||
endif
|
||||
|
||||
ifeq ($(USE_HIGHS),1)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
HIGHS_CPPFLAGS = -isystem /opt/homebrew/include/highs
|
||||
HIGHS_LDFLAGS = -L/opt/homebrew/lib -lhighs
|
||||
else ifeq ($(UNAME_S),Linux)
|
||||
HIGHS_CPPFLAGS = -isystem /usr/local/include/highs
|
||||
HIGHS_LDFLAGS = -L/usr/local/lib -lhighs
|
||||
ifneq ($(CONDA_PREFIX),)
|
||||
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
HIGHS_CPPFLAGS += -isystem /opt/homebrew/include/highs
|
||||
HIGHS_LDFLAGS += -L/opt/homebrew/lib -lhighs
|
||||
else ifneq ($(CONDA_PREFIX),)
|
||||
HIGHS_CPPFLAGS += -isystem $(CONDA_PREFIX)/include -isystem $(CONDA_PREFIX)/include/highs
|
||||
HIGHS_LDFLAGS += -L$(CONDA_PREFIX)/lib -Wl,-rpath,$(CONDA_PREFIX)/lib
|
||||
endif
|
||||
endif
|
||||
|
||||
MK_CPPFLAGS += $(HIGHS_CPPFLAGS) -DUSE_HIGHS
|
||||
MK_LDFLAGS += $(HIGHS_LDFLAGS)
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue