fix the unit test flag issue on packaging pipelines (#652)
This commit is contained in:
Родитель
307e712f20
Коммит
fc275e623f
|
@ -178,6 +178,7 @@ class CmdBuildCMakeExt(_build_ext):
|
|||
cmake_args = [
|
||||
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' +
|
||||
str(ext_fullpath.parent.absolute()),
|
||||
'-DOCOS_ENABLE_CTEST=OFF',
|
||||
'-DOCOS_BUILD_PYTHON=ON',
|
||||
'-DOCOS_PYTHON_MODULE_PATH=' + str(ext_fullpath),
|
||||
'-DCMAKE_BUILD_TYPE=' + config
|
||||
|
|
|
@ -194,6 +194,9 @@ if(OCOS_ENABLE_SELECTED_OPLIST)
|
|||
message(STATUS "Looking for the _selectedoplist.cmake")
|
||||
disable_all_operators()
|
||||
include(_selectedoplist)
|
||||
# Include the selected_ops case, no way to run the unit tests, so disable it,
|
||||
# even the user explicitly set it to ON. (it is rare, most of the time, it is set by default)
|
||||
set(OCOS_ENABLE_CTEST OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
|
||||
set(_OCOS_EXCEPTIONS_REQUIRED OFF)
|
||||
|
|
Загрузка…
Ссылка в новой задаче