coin-or / SHOT

A solver for mixed-integer nonlinear optimization problems
https://shotsolver.dev
Eclipse Public License 2.0
119 stars 25 forks source link

Compatibility with cmake < 3.11 #65

Closed mapgccv closed 4 years ago

mapgccv commented 4 years ago

On CMake versions prior to 3.11, specifying target properties for imported targets fail (see https://cmake.org/cmake/help/v3.10/command/target_compile_definitions.html vs https://cmake.org/cmake/help/v3.11/command/target_compile_definitions.html). This pull request uses the all-compatible set_property statement instead.

andreaslundell commented 4 years ago

Thanks, all help with CMake is much appreciated!