diff --git a/cmake/MiscCheck.cmake b/cmake/MiscCheck.cmake index 4671f60dd02ea..2e6117a8a33b9 100644 --- a/cmake/MiscCheck.cmake +++ b/cmake/MiscCheck.cmake @@ -37,28 +37,6 @@ if(EXISTS "/etc/os-release") endif() endif() -# ---[ Check if the data type long and int32_t/int64_t overlap. -cmake_push_check_state(RESET) -set(CMAKE_REQUIRED_FLAGS "-std=c++11") -CHECK_CXX_SOURCE_COMPILES( - "#include - - template void Foo(); - template<> void Foo() {} - template<> void Foo() {} - int main(int argc, char** argv) { - Foo(); - return 0; - }" CAFFE2_LONG_IS_INT32_OR_64) - -if (CAFFE2_LONG_IS_INT32_OR_64) - message(STATUS "Does not need to define long separately.") -else() - message(STATUS "Need to define long as a separate typeid.") - set(CAFFE2_UNIQUE_LONG_TYPEMETA 1) -endif() -cmake_pop_check_state() - # ---[ Check if std::exception_ptr is supported. cmake_push_check_state(RESET) set(CMAKE_REQUIRED_FLAGS "-std=c++11")