-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCLomatic][CMake] Add migration support for `set_source_files_prope…
…rties` (#1870)
- 20250212
- 20250211
- 20250210
- 20250209
- 20250208
- 20250207
- 20250206
- 20250205
- 20250204
- 20250203
- 20250202
- 20250201
- 20250131
- 20250130
- 20250129
- 20250128
- 20250127
- 20250126
- 20250125
- 20250124
- 20250123
- 20250122
- 20250121
- 20250120
- 20250119
- 20250118
- 20250117
- 20250116
- 20250115
- 20250114
- 20250113
- 20250112
- 20250111
- 20250110
- 20250109
- 20250108
- 20250107
- 20250106
- 20250105
- 20250104
- 20250103
- 20250102
- 20250101
- 20241231
- 20241230
- 20241229
- 20241228
- 20241227
- 20241226
- 20241225
- 20241224
- 20241223
- 20241222
- 20241221
- 20241220
- 20241219
- 20241218
- 20241217
- 20241216
- 20241215
- 20241214
- 20241213
- 20241212
- 20241211
- 20241210
- 20241209
- 20241208
- 20241207
- 20241206
- 20241205
- 20241204
- 20241203
- 20241202
- 20241201
- 20241130
- 20241129
- 20241128
- 20241127
- 20241126
- 20241125
- 20241124
- 20241123
- 20241122
- 20241121
- 20241119
- 20241118
- 20241116
- 20241115
- 20241114
- 20241113
- 20241112
- 20241111
- 20241110
- 20241109
- 20241108
- 20241107
- 20241106
- 20241105
- 20241104
- 20241103
- 20241102
- 20241101
- 20241031
- 20241030
- 20241029
- 20241028
- 20241027
- 20241026
- 20241025
- 20241024
- 20241023
- 20241022
- 20241021
- 20241020
- 20241019
- 20241018
- 20241017
- 20241016
- 20241015
- 20241014
- 20241013
- 20241012
- 20241011
- 20241010
- 20241009
- 20241008
- 20241007
- 20241006
- 20241005
- 20241004
- 20241003
- 20241002
- 20241001
- 20240930
- 20240929
- 20240928
- 20240927
- 20240926
- 20240925
- 20240924
- 20240923
- 20240922
- 20240921
- 20240920
- 20240918
- 20240917
- 20240916
- 20240915
- 20240914
- 20240913
- 20240912
- 20240911
- 20240910
- 20240909
- 20240908
- 20240907
- 20240906
- 20240905
- 20240904
- 20240903
- 20240902
- 20240901
- 20240831
- 20240830
- 20240829
- 20240828
- 20240827
- 20240826
- 20240825
- 20240824
- 20240823
- 20240822
- 20240821
- 20240820
- 20240819
- 20240818
- 20240817
- 20240816
- 20240815
- 20240814
- 20240813
- 20240812
- 20240811
- 20240809
- 20240808
- 20240807
- 20240806
- 20240805
- 20240804
- 20240803
- 20240802
- 20240801
- 20240731
- 20240730
- 20240729
- 20240728
- 20240727
- 20240726
- 20240725
- 20240724
- 20240723
- 20240722
- 20240721
- 20240720
- 20240719
- 20240718
- 20240717
- 20240716
- 20240715
- 20240714
- 20240713
- 20240712
- 20240711
- 20240710
- 20240709
- 20240708
- 20240707
- 20240706
- 20240705
- 20240704
- 20240703
- 20240702
- 20240701
- 20240630
- 20240629
- 20240628
- 20240627
- 20240626
- 20240625
- 20240624
- 20240623
- 20240622
- 20240621
- 20240620
- 20240619
- 20240618
- 20240617
- 20240616
- 20240615
- 20240614
- 20240613
- 20240612
- 20240611
- 20240610
- 20240609
- 20240607
- 20240606
- 20240605
- 20240604
- 20240603
- 20240602
- 20240601
- 20240531
- 20240530
- 20240529
- 20240528
- 20240527
- 20240526
- 20240525
- 20240524
- 20240523
- 20240522
- 20240521
- 20240520
- 20240519
- 20240517
- 20240516
- 20240515
- 20240514
- 20240513
- 20240512
- 20240511
- 20240510
- 20240509
- 20240508
- 20240507
- 20240506
- 20240505
- 20240504
- 20240503
- 20240502
- 20240501
- 20240430
- 20240429
- 20240428
- 20240427
- 20240426
- 20240425
- 20240424
- 20240423
1 parent
74046f6
commit a8716a3
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
clang/test/dpct/cmake_migration/case_042/case_042_set_source_files_properties.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// RUN: rm -rf %T && mkdir -p %T | ||
// RUN: cd %T | ||
// RUN: cp %S/input.cmake ./input.cmake | ||
// RUN: dpct -in-root ./ -out-root out ./input.cmake --migrate-build-script-only | ||
// RUN: echo "begin" > %T/diff.txt | ||
// RUN: diff --strip-trailing-cr %S/expected.txt %T/out/input.cmake >> %T/diff.txt | ||
// RUN: echo "end" >> %T/diff.txt | ||
|
||
// CHECK: begin | ||
// CHECK-NEXT: end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# simplest case | ||
set_source_files_properties(${src_files} PROPERTIES LANGUAGE CXX) | ||
|
||
# add space test | ||
set_source_files_properties(${src_files} PROPERTIES LANGUAGE CXX) | ||
|
||
# with more properties after LANGUAGE | ||
set_source_files_properties(${src_files} PROPERTIES LANGUAGE CXX COMPILE_DEFINITIONS SOME_DEFINE) | ||
|
||
# add properties on right | ||
set_source_files_properties(${src_files} PROPERTIES COMPILE_FLAGS "--some-flag" LANGUAGE CXX COMPILE_DEFINITIONS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# simplest case | ||
set_source_files_properties(${src_files} PROPERTIES LANGUAGE CUDA) | ||
|
||
# add space test | ||
set_source_files_properties (${src_files} PROPERTIES LANGUAGE CUDA) | ||
|
||
# with more properties after LANGUAGE | ||
set_source_files_properties(${src_files} PROPERTIES LANGUAGE CUDA COMPILE_DEFINITIONS SOME_DEFINE) | ||
|
||
# add properties on right | ||
set_source_files_properties(${src_files} PROPERTIES COMPILE_FLAGS "--some-flag" LANGUAGE CUDA COMPILE_DEFINITIONS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters