mapbox / variant

C++11/C++14 Variant
BSD 3-Clause "New" or "Revised" License
371 stars 101 forks source link

[Usage] using inside cmake project #174

Open yiakwy opened 5 years ago

yiakwy commented 5 years ago

Good job! But I still have a question to use it in CMAKE project.

Suppose I have project in the following structures

- root
      - CMakeLists.txt
      - cmake
      - modules
      ...
      - vendor
            - variant

How should I include the variant libraries for codes implemented in modules?

yiakwy commented 5 years ago

Moreover, I ran bench and found that boost::variant was averagely faster than mapbox::variant with better data.