Skip to content

Commit b88f60d

Browse files
don't build igdrcl_lib_mockable when SKIP_UNIT_TESTS is set
Change-Id: I7494ca082944040a630d7c3f9044b44c4bf0f47c Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent 02611dc commit b88f60d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,12 @@ if(DONT_CARE_OF_VIRTUALS)
607607
set(NEO_MOCKABLE_LIB_NAME ${NEO_RELEASE_LIB_NAME})
608608
generate_runtime_lib(${NEO_RELEASE_LIB_NAME} TRUE TRUE)
609609
else()
610-
set(NEO_MOCKABLE_LIB_NAME "igdrcl_lib_mockable") # Used by ULTS
611610
set(NEO_RELEASE_LIB_NAME "igdrcl_lib_release") # Used by dll/so
612611
generate_runtime_lib(${NEO_RELEASE_LIB_NAME} FALSE TRUE)
613-
generate_runtime_lib(${NEO_MOCKABLE_LIB_NAME} TRUE FALSE)
612+
if(NOT SKIP_UNIT_TESTS)
613+
set(NEO_MOCKABLE_LIB_NAME "igdrcl_lib_mockable") # Used by ULTS
614+
generate_runtime_lib(${NEO_MOCKABLE_LIB_NAME} TRUE FALSE)
615+
endif()
614616
endif()
615617

616618
if(DEFAULT_TESTED_PLATFORM)

0 commit comments

Comments
 (0)