mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Fix CMake configuration error when CLI targets are not included (#1213)
Doesn't really make sense to configure sources list based on target presence. Should fix https://github.com/luau-lang/luau/issues/1208
This commit is contained in:
parent
c1830d8b81
commit
bac85116f6
@ -356,19 +356,13 @@ target_sources(isocline PRIVATE
|
|||||||
extern/isocline/src/isocline.c
|
extern/isocline/src/isocline.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Common sources shared between all CLI apps
|
||||||
if (TARGET Luau.Repl.CLI OR TARGET Luau.Analyze.CLI OR
|
target_sources(Luau.CLI.lib PRIVATE
|
||||||
TARGET Luau.Ast.CLI OR TARGET Luau.CLI.Test OR
|
CLI/FileUtils.cpp
|
||||||
TARGET Luau.Reduce.CLI OR TARGET Luau.Compile.CLI OR
|
CLI/Flags.cpp
|
||||||
TARGET Luau.Bytecode.CLI)
|
CLI/Flags.h
|
||||||
# Common sources shared between all CLI apps.
|
CLI/FileUtils.h
|
||||||
target_sources(Luau.CLI.lib PRIVATE
|
)
|
||||||
CLI/FileUtils.cpp
|
|
||||||
CLI/Flags.cpp
|
|
||||||
CLI/Flags.h
|
|
||||||
CLI/FileUtils.h
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(TARGET Luau.Repl.CLI)
|
if(TARGET Luau.Repl.CLI)
|
||||||
# Luau.Repl.CLI Sources
|
# Luau.Repl.CLI Sources
|
||||||
|
Loading…
Reference in New Issue
Block a user