-
Notifications
You must be signed in to change notification settings - Fork 45
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
TRIBITS_ADD_EXECUTABLE missing ADD_EXECUTABLE properties #76
Comments
Don't remember seeing this Issue before (must have slipped through the cracks). How do the properties WIN32 and MACOSX_BUNDLE behave in a Linux build? Are they just ignored? How common are these? In think you can set the property WIN32_EXECUTABLE with using So do you think that TriBITS should support these as extra calls to I think the design principle is that TriBITS should support the 95% use case with the simple wrappers but make the other 5% of less common or dangerous/confusing use cases possible so as not to restrict the usage of CMake by projects that use TriBITS. However, to maintain consistency and compatibility, we can't let packages use CMake in an arbitrary way. That is the price we pay for interoperability of lots of packages built from source in the same CMake project. This is similar to #95 for TRIBITS_ADD_LIBRARY(). However, in the case of #95, the STATIC|SHARED options can't be set a properties so they have to be passed through. That is not the case for WIN32 and MACOSX_BUNDLE. They can be set after the fact as properties so we have a choice. |
@lefebvre, can you please look at my comment above and see what you think? |
I am going to proceed with a merge request on this case. |
Ross,
The TRIBITS_ADD_EXECUTABLE does not provide a handle for passing thru the executable properties WIN32 and MACOSX_BUNDLE for the CMake ADD_EXECUTABLE function.
The text was updated successfully, but these errors were encountered: