${CMAKE_CXX_FLAGS_LIST}${LDD_MEX_FLAGS} -DNOMINMAX COMPFLAGS="${OMP_COMPFLAG} $COMPFLAGS" LINKFLAGS="${OMP_LINKFLAG} $LINKFLAGS"# mex will replace -D by /D if VS is used for building
# (this constant is to contervene the symbol conflicts between std::min/max and min/max macro from Microsoft)
DEPENDS ${MEXOBJ_FILES}
COMMENT "Creating mex function ${mex_target}.${MEX_EXT}"
)
#COMMAND set ARGS CL=/openmp /link /openmp # doesn't work (https://docs.microsoft.com/en-us/cpp/build/reference/cl-environment-variables?view=vs-2019)
${CMAKE_CXX_FLAGS_LIST}${LDD_MEX_FLAGS} -DNOMINMAX COMPFLAGS="${OMP_COMPFLAG} $COMPFLAGS" LINKFLAGS="${OMP_LINKFLAG} $LINKFLAGS"# mex will replace -D by /D if VS is used for building
# (this constant is to contervene the symbol conflicts between std::min/max and min/max macro from Microsoft)
DEPENDS ${MEXOBJ_FILES}
COMMENT "Creating mex function ${mex_target}.${MEX_EXT}"