Seems that on mac, the inclusion order matters.

This commit is contained in:
Yangqing Jia 2017-01-04 21:52:59 -08:00
parent 83b2f282de
commit 1a26aab1cf

View file

@ -31,7 +31,6 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
include(ExternalProject)
include(cmake/Utils.cmake)
include(cmake/MiscCheck.cmake)
# options
option(USE_THREADS "Use Threads" ON)
@ -54,6 +53,9 @@ option(BUILD_TEST "Build C++ test binaries (need gtest and gbenchmark)" ON)
# ---[ Dependencies
include(cmake/Dependencies.cmake)
# ---[ Misc checks to cope with various compiler modes
include(cmake/MiscCheck.cmake)
# ---[ Set link flag, handle additional deps for gcc 5.x
if(BUILD_SHARED_LIBS)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0.0)