Skip to content

BUG: New CMake features used that break backward compatibility #1057

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

Merged

Conversation

hjmjohnson
Copy link
Contributor

We desire for jsoncpp to compile and be readily available
with older versions of cmake. The use of newer cmake
commands requires conditional statements so that older
strategies can be used with older versions of cmake.

Resolves: #1018

We desire for jsoncpp to compile and be readily available
with older  versions of cmake.  The use of newer cmake
commands requires conditional statements so that older
strategies can be used with older versions of cmake.

Resolves: open-source-parsers#1018
@hjmjohnson hjmjohnson requested a review from dota17 October 16, 2019 18:53
@hjmjohnson hjmjohnson self-assigned this Oct 16, 2019
@hjmjohnson hjmjohnson requested a review from baylesj October 16, 2019 18:54
@hjmjohnson
Copy link
Contributor Author

@crazySocket This should fix the problem. It provides both backward-compatible (rough solution) and newer more "elegant" solutions when cmake supports it.

I tested using cmake version 3.8.0 to verify that a typical build succeds.

@hjmjohnson hjmjohnson merged commit aebc7fa into open-source-parsers:master Oct 17, 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.

add_compile_definitions command not available in cmake 3.8.2
2 participants