cmake: set compiler flags for non-Windows platforms
authorAdam Simpkins <simpkins@fb.com>
Sat, 13 Jan 2018 00:02:58 +0000 (16:02 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 13 Jan 2018 00:07:43 +0000 (16:07 -0800)
commit03957924ccf4e32d0fbc4dc3198da3249f57b890
treee9d18bb978ccff72463283b386b409839d2a2052
parent3d9eb7ffc32c2f5f878bb4aee61d30cb8c62a146
cmake: set compiler flags for non-Windows platforms

Summary:
Update CMakeLists.txt to check the current platform, and to set compiler flags
correctly.  It now uses flags for Microsoft Visual Studio on Windows, and flags
for gcc or clang on all other platforms.  Previously it unconditionally used
MSVC flags.

Reviewed By: meyering

Differential Revision: D6710435

fbshipit-source-id: dbae3097bcadf1ee4a25879dd7770603387c0e4d
CMake/FollyCompiler.cmake [deleted file]
CMake/FollyCompilerMSVC.cmake [new file with mode: 0755]
CMake/FollyCompilerUnix.cmake [new file with mode: 0644]
CMakeLists.txt