Skip to content

Commit

Permalink
Meta: Add a main function to the stub jakt executable when !ENABLE_JAKT
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard committed Oct 4, 2024
1 parent 425b730 commit b227115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meta/Lagom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function(lagom_add_executable name)
else()
message(STATUS "Skipping ${name} because jakt is disabled")
# Make an empty c++ file:
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp" "// This file was generated by CMake to skip a jakt executable\n")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp" "// This file was generated by CMake to skip a jakt executable\nint main() {}")
add_executable(${name} "${CMAKE_CURRENT_BINARY_DIR}/${name}.cpp")
set_target_properties(${name} PROPERTIES SERENITY_SKIP_BUILD TRUE)
endif()
Expand Down

0 comments on commit b227115

Please sign in to comment.