LibTest: Move declaration of JS main target around to avoid CMake bug

For some reason, with CMake 4.0.3 and the Swift language enabled, this
target was getting random tokens in the compile commands. Moving it up
to the top of the file seems to fix this.
This commit is contained in:
Andrew Kaster 2025-07-09 11:37:57 -06:00 committed by Andrew Kaster
commit fa003fb2b0
Notes: github-actions[bot] 2025-07-09 22:28:08 +00:00

View file

@ -1,7 +1,8 @@
add_library(LibTestMain OBJECT TestMain.cpp AssertionHandler.cpp)
target_link_libraries(LibTestMain PUBLIC GenericClangPlugin)
add_library(JavaScriptTestRunnerMain OBJECT JavaScriptTestRunnerMain.cpp)
set(SOURCES
TestSuite.cpp
)
@ -10,5 +11,3 @@ add_library(LibTest ${SOURCES})
lagom_generate_export_header(LibTest test)
target_link_libraries(LibTest PRIVATE AK LibCore LibFileSystem)
set_target_properties(LibTest PROPERTIES OUTPUT_NAME lagom-test)
add_library(JavaScriptTestRunnerMain OBJECT JavaScriptTestRunnerMain.cpp)