File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1904,9 +1904,8 @@ endif()
1904
1904
1905
1905
# ============================================== LIT TESTS =============================================
1906
1906
1907
- add_subdirectory (Compiler/tests )
1908
- if (TARGET "check-igc" )
1909
- add_dependencies ("${IGC_BUILD__PROJ__igc_dll} " "check-igc" )
1907
+ if (DEFINED IGC_BUILD__PROJ__igc_opt AND TARGET ${IGC_BUILD__PROJ__igc_opt} )
1908
+ add_subdirectory (Compiler/tests )
1910
1909
endif ()
1911
1910
1912
1911
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ set(IGC_LIT_TEST_DEPENDS
35
35
FileCheck
36
36
count
37
37
not
38
- igc_opt
38
+ " ${IGC_BUILD__PROJ__igc_opt} "
39
39
)
40
40
41
41
# This will create a target called `check-igc`, which will run all tests from
@@ -48,7 +48,10 @@ add_lit_testsuite(check-igc "Running the IGC LIT tests"
48
48
)
49
49
50
50
# Tests should not be excluded from "Build Solution" in VS.
51
- set_target_properties (check-igc PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD OFF )
51
+ set_target_properties (check-igc
52
+ PROPERTIES
53
+ EXCLUDE_FROM_DEFAULT_BUILD OFF
54
+ EXCLUDE_FROM_ALL OFF )
52
55
53
56
# Line below is just used to group LIT reated targets in single directory
54
57
# in IDE. This is completely optional.
You can’t perform that action at this time.
0 commit comments