Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with multiple swift files : hello.swift and world.swift #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

afabri
Copy link

@afabri afabri commented Apr 24, 2024

When using more than one swift file to build the executable hello., one of them must be called main.swift.
It might make sense to. have that as a seprarate example, or just telling it in the readme.

@afabri
Copy link
Author

afabri commented Apr 24, 2024

Adding a swift file to 2_executable_library/lib/CMakeLists.txt. works without any change.

Copy link

@lrineau lrineau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested locally on Linux. Looks good to me, once the two typos are fixed (missing ! and extra trailing ).

I have reservations: I wonder if it would makes sense to have a extra sub-directory, like:

  1_single_executable/
  1_bis_single_executable_multiple_swift_files/

afabri and others added 2 commits May 3, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants