cmake: add XPRESS_PATH compile definition
This commit is contained in:
@@ -130,6 +130,11 @@ if(USE_CPLEX)
|
||||
endif()
|
||||
if(USE_XPRESS)
|
||||
list(APPEND OR_TOOLS_COMPILE_DEFINITIONS "USE_XPRESS")
|
||||
if(MSVC)
|
||||
list(APPEND OR_TOOLS_COMPILE_DEFINITIONS "XPRESS_PATH=\"${XPRESS_ROOT}\"")
|
||||
else()
|
||||
list(APPEND OR_TOOLS_COMPILE_DEFINITIONS "XPRESS_PATH=${XPRESS_ROOT}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user