Skip to content

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