未验证 提交 70461656 编写于 作者: T T8T9 提交者: GitHub

remove ${CMAKE_VERSION} VERSION_LESS "3.3.0". (#25128)

上级 e8134e87
...@@ -52,13 +52,7 @@ ExternalProject_Add( ...@@ -52,13 +52,7 @@ ExternalProject_Add(
UPDATE_COMMAND "" UPDATE_COMMAND ""
) )
if (${CMAKE_VERSION} VERSION_LESS "3.3.0" OR NOT WIN32) add_library(boost INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/boost_dummy.c)
file(WRITE ${dummyfile} "const char *dummy = \"${dummyfile}\";")
add_library(boost STATIC ${dummyfile})
else()
add_library(boost INTERFACE)
endif()
add_dependencies(boost ${BOOST_PROJECT}) add_dependencies(boost ${BOOST_PROJECT})
set(Boost_INCLUDE_DIR ${BOOST_INCLUDE_DIR}) set(Boost_INCLUDE_DIR ${BOOST_INCLUDE_DIR})
...@@ -41,12 +41,6 @@ ExternalProject_Add( ...@@ -41,12 +41,6 @@ ExternalProject_Add(
TEST_COMMAND "" TEST_COMMAND ""
) )
if(${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(cub INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/cub_dummy.c)
file(WRITE ${dummyfile} "const char *dummy = \"${dummyfile}\";")
add_library(cub STATIC ${dummyfile})
else()
add_library(cub INTERFACE)
endif()
add_dependencies(cub extern_cub) add_dependencies(cub extern_cub)
...@@ -42,12 +42,6 @@ ExternalProject_Add( ...@@ -42,12 +42,6 @@ ExternalProject_Add(
TEST_COMMAND "" TEST_COMMAND ""
) )
if(${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(dlpack INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/dlpack_dummy.c)
file(WRITE ${dummyfile} "const char *dummy = \"${dummyfile}\";")
add_library(dlpack STATIC ${dummyfile})
else()
add_library(dlpack INTERFACE)
endif()
add_dependencies(dlpack extern_dlpack) add_dependencies(dlpack extern_dlpack)
...@@ -89,12 +89,6 @@ else() ...@@ -89,12 +89,6 @@ else()
) )
endif() endif()
if (${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(eigen3 INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/eigen3_dummy.c)
file(WRITE ${dummyfile} "const char *dummy_eigen3 = \"${dummyfile}\";")
add_library(eigen3 STATIC ${dummyfile})
else()
add_library(eigen3 INTERFACE)
endif()
add_dependencies(eigen3 extern_eigen3) add_dependencies(eigen3 extern_eigen3)
...@@ -52,12 +52,6 @@ ExternalProject_Add( ...@@ -52,12 +52,6 @@ ExternalProject_Add(
CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${LIBMCT_INSTALL_ROOT} CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${LIBMCT_INSTALL_ROOT}
) )
if (${CMAKE_VERSION} VERSION_LESS "3.3.0" OR NOT WIN32) add_library(libmct INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/boost_dummy.c)
file(WRITE ${dummyfile} "const char *dummy = \"${dummyfile}\";")
add_library(libmct STATIC ${dummyfile})
else()
add_library(libmct INTERFACE)
endif()
ADD_DEPENDENCIES(libmct ${LIBMCT_PROJECT}) ADD_DEPENDENCIES(libmct ${LIBMCT_PROJECT})
...@@ -41,12 +41,6 @@ ExternalProject_Add( ...@@ -41,12 +41,6 @@ ExternalProject_Add(
TEST_COMMAND "" TEST_COMMAND ""
) )
if(${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(pybind INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/pybind_dummy.c)
file(WRITE ${dummyfile} "const char * dummy_pybind = \"${dummyfile}\";")
add_library(pybind STATIC ${dummyfile})
else()
add_library(pybind INTERFACE)
endif()
add_dependencies(pybind extern_pybind) add_dependencies(pybind extern_pybind)
...@@ -44,12 +44,6 @@ ExternalProject_Add( ...@@ -44,12 +44,6 @@ ExternalProject_Add(
INCLUDE_DIRECTORIES(${ROCPRIM_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${ROCPRIM_INCLUDE_DIR})
if (${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(rocprim INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/rocprim_dummy.c)
file(WRITE ${dummyfile} "const char *dummy_rocprim = \"${dummyfile}\";")
add_library(rocprim STATIC ${dummyfile})
else()
add_library(rocprim INTERFACE)
endif()
add_dependencies(rocprim extern_rocprim) add_dependencies(rocprim extern_rocprim)
...@@ -41,12 +41,6 @@ ExternalProject_Add( ...@@ -41,12 +41,6 @@ ExternalProject_Add(
TEST_COMMAND "" TEST_COMMAND ""
) )
if (${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(simple_threadpool INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/threadpool_dummy.c)
file(WRITE ${dummyfile} "const char *dummy_threadpool = \"${dummyfile}\";")
add_library(simple_threadpool STATIC ${dummyfile})
else()
add_library(simple_threadpool INTERFACE)
endif()
add_dependencies(simple_threadpool extern_threadpool) add_dependencies(simple_threadpool extern_threadpool)
...@@ -49,12 +49,6 @@ ExternalProject_Add( ...@@ -49,12 +49,6 @@ ExternalProject_Add(
CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${XBYAK_INSTALL_ROOT} CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${XBYAK_INSTALL_ROOT}
) )
if (${CMAKE_VERSION} VERSION_LESS "3.3.0") add_library(xbyak INTERFACE)
set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/xbyak_dummy.c)
file(WRITE ${dummyfile} "const char *dummy_xbyak = \"${dummyfile}\";")
add_library(xbyak STATIC ${dummyfile})
else()
add_library(xbyak INTERFACE)
endif()
add_dependencies(xbyak ${XBYAK_PROJECT}) add_dependencies(xbyak ${XBYAK_PROJECT})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册