Refactor the CMake file to work with CMake 3.8.2
authorChristopher Dykes <cdykes@fb.com>
Wed, 31 May 2017 22:12:02 +0000 (15:12 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 31 May 2017 22:22:07 +0000 (15:22 -0700)
commit3a4a9694164306e5279fd1df1689af1bcdeb4a89
tree4132765631b270b028436df0b986e07288be3955
parent8401bbaffc06e05b14ea7057842b7ed2804375c0
Refactor the CMake file to work with CMake 3.8.2

Summary:
The dirty hack I was using to link `folly_base` into `folly` doesn't work in newer versions of CMake :(
This refactors the makefile to not need to dirty hack by using an object library rule instead. It also makes the compiler version detection more generic.

Reviewed By: yfeldblum

Differential Revision: D5158919

fbshipit-source-id: cd052a5f58ed3d88c377c68cca07ca8497ca0c7a
CMakeLists.txt