Skip to content

Commit a2f1a63

Browse files
authored
cmake: Convert to using lowercase for and functions/macros (#2495)
This is line with modern cmake conventions is much less SHOUTY!
1 parent 19d929c commit a2f1a63

8 files changed

Lines changed: 239 additions & 239 deletions

File tree

CMakeLists.txt

Lines changed: 225 additions & 225 deletions
Large diffs are not rendered by default.

src/asmjs/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
SET(asmjs_SOURCES
1+
set(asmjs_SOURCES
22
asm_v_wasm.cpp
33
asmangle.cpp
44
shared-constants.cpp
55
)
6-
ADD_LIBRARY(asmjs OBJECT ${asmjs_SOURCES})
6+
add_library(asmjs OBJECT ${asmjs_SOURCES})

src/cfg/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SET(cfg_SOURCES
1+
set(cfg_SOURCES
22
Relooper.cpp
33
)
4-
ADD_LIBRARY(cfg OBJECT ${cfg_SOURCES})
4+
add_library(cfg OBJECT ${cfg_SOURCES})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
SET(emscripten-optimizer_SOURCES
1+
set(emscripten-optimizer_SOURCES
22
optimizer-shared.cpp
33
parser.cpp
44
simple_ast.cpp
55
)
6-
ADD_LIBRARY(emscripten-optimizer OBJECT ${emscripten-optimizer_SOURCES})
6+
add_library(emscripten-optimizer OBJECT ${emscripten-optimizer_SOURCES})

src/ir/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
SET(ir_SOURCES
1+
set(ir_SOURCES
22
ExpressionAnalyzer.cpp
33
ExpressionManipulator.cpp
44
LocalGraph.cpp
55
ReFinalize.cpp
66
)
7-
ADD_LIBRARY(ir OBJECT ${ir_SOURCES})
7+
add_library(ir OBJECT ${ir_SOURCES})

src/passes/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_custom_command(
33
COMMAND python ${PROJECT_SOURCE_DIR}/scripts/embedwast.py ${PROJECT_SOURCE_DIR}/src/passes/wasm-intrinsics.wast ${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp
44
DEPENDS ${PROJECT_SOURCE_DIR}/scripts/embedwast.py wasm-intrinsics.wast)
55

6-
SET(passes_SOURCES
6+
set(passes_SOURCES
77
pass.cpp
88
AlignmentLowering.cpp
99
Asyncify.cpp
@@ -72,4 +72,4 @@ SET(passes_SOURCES
7272
Vacuum.cpp
7373
${CMAKE_CURRENT_BINARY_DIR}/WasmIntrinsics.cpp
7474
)
75-
ADD_LIBRARY(passes OBJECT ${passes_SOURCES})
75+
add_library(passes OBJECT ${passes_SOURCES})

src/support/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SET(support_SOURCES
1+
set(support_SOURCES
22
archive.cpp
33
bits.cpp
44
colors.cpp
@@ -9,4 +9,4 @@ SET(support_SOURCES
99
safe_integer.cpp
1010
threads.cpp
1111
)
12-
ADD_LIBRARY(support OBJECT ${support_SOURCES})
12+
add_library(support OBJECT ${support_SOURCES})

src/wasm/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SET(wasm_SOURCES
1+
set(wasm_SOURCES
22
literal.cpp
33
wasm.cpp
44
wasm-binary.cpp
@@ -10,4 +10,4 @@ SET(wasm_SOURCES
1010
wasm-type.cpp
1111
wasm-validator.cpp
1212
)
13-
ADD_LIBRARY(wasm OBJECT ${wasm_SOURCES})
13+
add_library(wasm OBJECT ${wasm_SOURCES})

0 commit comments

Comments
 (0)