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

Gcc8 support #16

Closed
wants to merge 2 commits into from
Closed

Gcc8 support #16

wants to merge 2 commits into from

Conversation

pacio5
Copy link

@pacio5 pacio5 commented May 22, 2021

It solves the problem of working with gcc8. Enables support for .

Added a flag for <filesystem> support on gcc8
added support to <filesystem> for gcc8 also in link phase
Copy link
Owner

@Pengor Pengor left a comment

Choose a reason for hiding this comment

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

Changes cause warnings/errors under other environments and may need to be applied in a more limited scope.

@@ -4,9 +4,12 @@ project(chia-log-analysis VERSION 0.5)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-lstdc++fs")
Copy link
Owner

Choose a reason for hiding this comment

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

This flag should only be set when the compiler is GCC and the GCC version is 8.x, otherwise it is passed to other compilers that report warnings.

target_include_directories(chia-log-analysis PUBLIC "${PROJECT_BINARY_DIR}")
target_include_libraries(chia-log-analysis PUBLIC -lstdc++fs)
Copy link
Owner

Choose a reason for hiding this comment

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

When running cmake -S src -B build with this line I get the following error under my environments (msvc 16 & gcc 10, cmake 3.20):

CMake Error at CMakeLists.txt:15 (target_include_libraries):
  Unknown CMake command "target_include_libraries".

@Pengor
Copy link
Owner

Pengor commented May 24, 2021

Thanks for the PR @pacio5! Let me know if you'd like to continue working on this issue, otherwise I can look into it.

@Pengor Pengor added the enhancement New feature or request label May 24, 2021
@Pengor Pengor linked an issue May 24, 2021 that may be closed by this pull request
@pacio5 pacio5 closed this by deleting the head repository Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCC 8 not supported
2 participants