jwdinius / ortools-with-cmake

How-to demonstrating integration of binary or-tools package from Google with cmake
MIT License
5 stars 4 forks source link

CMake command in instructions not working in my case #2

Open zehuilu opened 3 years ago

zehuilu commented 3 years ago

My environment is Clang 12.0.0.0, CMake 3.18.3, macOS 10.15.7. I found out cmake -DORTOOLS_ROOT:STRING="{path-to-ortools-root-dir}" .. is not working in my case. But cmake -DORTOOLS_ROOT=<path-to-ortools-root-dir> .. is working. Also, I set cmake_minimum_required(VERSION 3.12) in CMakeLists.txt to avoid the CMAKE warning for CMP0074. Maybe it helps someone else.