-
Notifications
You must be signed in to change notification settings - Fork 25
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
Allow compilation with modern CMake versions (>3.0) #8
Open
themikelester
wants to merge
16
commits into
Celtoys:master
Choose a base branch
from
themikelester:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* The `project(...)` call now specifies a version * clReflectTest uses the $<TARGET_FILE> syntax rather than the LOCATION property Both of these are errors for cmake 3.0 or greater
Fixes: - error: unknown type name 'constexpr' - warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
…sembly instructions This was breaking arm64 compilation on Apple's M1/2 architectures
…default on Apple platforms)
…er and linker flags
…es so that generators are evaluated correctly
The "-i" command line arguments must be preceded by a "--" in order to pass them to clang, and they're now "-I" arguments
dwilliamson
reviewed
Jun 1, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR, just one comment...
@@ -3,5 +3,5 @@ add_subdirectory(clReflectCpp) | |||
add_subdirectory(clReflectExport) | |||
add_subdirectory(clReflectMerge) | |||
add_subdirectory(clReflectScan) | |||
add_subdirectory(clReflectTest) | |||
#add_subdirectory(clReflectTest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this absolutely necessary?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current CMakeLists.txt files will not compile on CMake 2.8 or CMake 3.0+. This PR fixes the following issues:
project(...)
call in the root CMakeLists.txt now specifies a version (currently 0.5.12)$<TARGET_FILE:clReflectTest>
syntax instead.