make: Fix XPRESS compilation on windows
This commit is contained in:
@@ -119,7 +119,7 @@ ifdef WINDOWS_CPLEX_DIR
|
||||
DYNAMIC_CPLEX_LNK = $(STATIC_CPLEX_LNK)
|
||||
endif
|
||||
ifdef WINDOWS_XPRESS_DIR
|
||||
XPRESS_INC = /I"$(WINDOWS_XPRESS_DIR)\\include" /DUSE_XPRESS /DXPRESS_PATH="$(WINDOWS_XPRESS_DIR)"
|
||||
XPRESS_INC = /I"$(WINDOWS_XPRESS_DIR)\\include" /DUSE_XPRESS /DXPRESS_PATH=\"$(WINDOWS_XPRESS_DIR)\"
|
||||
XPRESS_SWIG = -I"$(WINDOWS_XPRESS_DIR)/include" -DUSE_XPRESS
|
||||
STATIC_XPRESS_LNK = "$(WINDOWS_XPRESS_DIR)\\lib\\xprs.lib"
|
||||
DYNAMIC_XPRESS_LNK = $(STATIC_XPRESS_LNK)
|
||||
|
||||
@@ -265,7 +265,7 @@ int init_xpress_env(int xpress_oem_license_key = 0) {
|
||||
LOG(WARNING)
|
||||
<< "Environment variable XPRESS undefined. Trying compile path "
|
||||
<< "'" << STRINGIFY(XPRESS_PATH) << "'";
|
||||
#if defined(__MSC_VER)
|
||||
#if defined(_MSC_VER)
|
||||
xpresspath = STRINGIFY(XPRESS_PATH) "\\bin";
|
||||
#else // _MSC_VER
|
||||
xpresspath = STRINGIFY(XPRESS_PATH) "/bin";
|
||||
|
||||
Reference in New Issue
Block a user