cmake: add checks to generate folly-config.h correctly
authorAdam Simpkins <simpkins@fb.com>
Sat, 13 Jan 2018 00:03:00 +0000 (16:03 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 13 Jan 2018 00:07:43 +0000 (16:07 -0800)
commitb22d1721ed9c062e22b33936e13b39ed1507391a
treeb41cad1e6fdf732480db11e2ccb2c5c4e0559173
parent03957924ccf4e32d0fbc4dc3198da3249f57b890
cmake: add checks to generate folly-config.h correctly

Summary:
Add proper checks to detect and set the values in folly-config.h correctly.
Previously the code simply hard-coded values that were appropriate for Windows.

This does not yet define all of the settings produced by the autoconf build,
but it lets the CMake-based build largely succeed on Linux systems.

Reviewed By: meyering

Differential Revision: D6710437

fbshipit-source-id: 80490080ee6322995b740ac2a15181d220c6874a
CMake/FollyConfigChecks.cmake [new file with mode: 0644]
CMake/folly-config.h.cmake
CMakeLists.txt