don't build igdrcl_lib_mockable when SKIP_UNIT_TESTS is set

Change-Id: I7494ca082944040a630d7c3f9044b44c4bf0f47c
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2018-08-28 14:18:44 +02:00
committed by sys_ocldev
parent 02611dc953
commit b88f60d14e

View File

@ -607,10 +607,12 @@ if(DONT_CARE_OF_VIRTUALS)
set(NEO_MOCKABLE_LIB_NAME ${NEO_RELEASE_LIB_NAME}) set(NEO_MOCKABLE_LIB_NAME ${NEO_RELEASE_LIB_NAME})
generate_runtime_lib(${NEO_RELEASE_LIB_NAME} TRUE TRUE) generate_runtime_lib(${NEO_RELEASE_LIB_NAME} TRUE TRUE)
else() else()
set(NEO_MOCKABLE_LIB_NAME "igdrcl_lib_mockable") # Used by ULTS
set(NEO_RELEASE_LIB_NAME "igdrcl_lib_release") # Used by dll/so set(NEO_RELEASE_LIB_NAME "igdrcl_lib_release") # Used by dll/so
generate_runtime_lib(${NEO_RELEASE_LIB_NAME} FALSE TRUE) generate_runtime_lib(${NEO_RELEASE_LIB_NAME} FALSE TRUE)
generate_runtime_lib(${NEO_MOCKABLE_LIB_NAME} TRUE FALSE) if(NOT SKIP_UNIT_TESTS)
set(NEO_MOCKABLE_LIB_NAME "igdrcl_lib_mockable") # Used by ULTS
generate_runtime_lib(${NEO_MOCKABLE_LIB_NAME} TRUE FALSE)
endif()
endif() endif()
if(DEFAULT_TESTED_PLATFORM) if(DEFAULT_TESTED_PLATFORM)