cmake: add XPRESS_PATH compile definition

This commit is contained in:
Mizux Seiha
2020-07-25 22:59:27 +02:00
parent a7262b6ec7
commit 4beaa8a320

View File

@@ -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)