Skip to content

Commit 2212d16

Browse files
authored
[BuildToolchains] Fix name of CMake variables (#124)
1 parent 581b094 commit 2212d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BuildToolchains.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ function toolchain_file(bt::CMake, p::AbstractPlatform; is_host::Bool=false)
3939
# We want to have the host toolchain always setting `HOST_SYSTEM_NAME`, and
4040
# the target toolchain always setting `SYSTEM_NAME`.
4141
system_name_var = if is_host
42-
"HOST_SYSTEM_NAME"
42+
"CMAKE_HOST_SYSTEM_NAME"
4343
else
44-
"SYSTEM_NAME"
44+
"CMAKE_SYSTEM_NAME"
4545
end
4646

4747
if Sys.isapple(p)

0 commit comments

Comments
 (0)