Skip to content

Commit

Permalink
Fix CMake configuration error when CLI targets are not included again (
Browse files Browse the repository at this point in the history
…#1219)

A mistake was made in #1218

Fixes #1208
  • Loading branch information
vegorov-rbx authored Mar 31, 2024
1 parent 47ad768 commit 9649e5e
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -358,19 +358,13 @@ target_sources(isocline PRIVATE
extern/isocline/src/isocline.c
)


if (TARGET Luau.Repl.CLI OR TARGET Luau.Analyze.CLI OR
TARGET Luau.Ast.CLI OR TARGET Luau.CLI.Test OR
TARGET Luau.Reduce.CLI OR TARGET Luau.Compile.CLI OR
TARGET Luau.Bytecode.CLI)
# Common sources shared between all CLI apps.
target_sources(Luau.CLI.lib PRIVATE
CLI/FileUtils.cpp
CLI/Flags.cpp
CLI/Flags.h
CLI/FileUtils.h
)
endif()
# Common sources shared between all CLI apps
target_sources(Luau.CLI.lib PRIVATE
CLI/FileUtils.cpp
CLI/Flags.cpp
CLI/Flags.h
CLI/FileUtils.h
)

if(TARGET Luau.Repl.CLI)
# Luau.Repl.CLI Sources
Expand Down

0 comments on commit 9649e5e

Please sign in to comment.