8000 Specifies C version to enable compiling in certain Linux flavors by nabeards · Pull Request #51 · szatmary/libcaption · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Specifies C version to enable compiling in certain Linux flavors #51

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

nabeards
Copy link
@nabeards nabeards commented Nov 1, 2018

When compiling on CentOS 7, I need to have the C Standard specify for the build process to work properly.

I also fixed a very minor unit test warning by typecasting for the fprintf statement.

@embeddedguy1138
Copy link

Hi Neil,

The variable set(CMAKE_C_STANDARD 11) was introduced in CMake v3.1. In order to support older platforms (like mine with no C11), you may want to consider something like this:

if (CMAKE_VERSION VERSION_EQUAL "3.1" OR CMAKE_VERSION VERSION_EQUAL "3.1")
    set(CMAKE_C_STANDARD 11)

@nabeards
Copy link
Author
nabeards commented Nov 1, 2018

Excellent point, I've updated the branch.
(Assumed you meant the second test to be VERSION_GREATER.)

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.

2 participants
0