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

Fix building on Mac OS X/macOS #15

Merged
merged 1 commit into from Jul 20, 2019
Merged

Fix building on Mac OS X/macOS #15

merged 1 commit into from Jul 20, 2019

Conversation

yan12125
Copy link
Contributor

Without project(), compiler flags like -std=gnu++17 are not applied
for non-Apple clang on Mac OS X/macOS.

For a more detailed explanation, see the commit message for a similar case - macports/macports-ports@98445d6.

Also, according to CMake document [1]:

The top-level CMakeLists.txt file for a project must contain a literal, direct call to the project() command; loading one through the include() command is not sufficient.

That explains why the project() command in cmake/modules/BasicConfig.cmake does not always work.

[1] https://cmake.org/cmake/help/latest/command/project.html#command:project

Copy link
Owner

@Martchus Martchus left a comment

Choose a reason for hiding this comment

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

Ok, but I guess this should be c++utilities then (in accordance to the call inside BaseConfig).

Without project(), compiler flags like -std=gnu++17 are not applied
for non-Apple clang on Mac OS X/macOS.
@yan12125
Copy link
Contributor Author

Thanks fixed!

@Martchus Martchus merged commit 284e3df into Martchus:master Jul 20, 2019
@yan12125 yan12125 deleted the fix-for-old-macos branch July 20, 2019 15:22
Martchus added a commit to Martchus/reflective-rapidjson that referenced this pull request Jul 20, 2019
Martchus added a commit to Martchus/geocoordinatecalculator that referenced this pull request Jul 20, 2019
Martchus added a commit to Martchus/tagparser that referenced this pull request Jul 20, 2019
Martchus added a commit to Martchus/tageditor that referenced this pull request Jul 20, 2019
Martchus added a commit to Martchus/videodownloader that referenced this pull request Jul 20, 2019
Martchus added a commit to Martchus/passwordfile that referenced this pull request Jul 20, 2019
Martchus added a commit to Martchus/passwordmanager that referenced this pull request Jul 20, 2019
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.

None yet

2 participants