diff --git a/CMakeLists.txt b/CMakeLists.txt index d4d599134587..7a55a629bd8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -566,6 +566,7 @@ add_library(tvm_objs OBJECT ${COMPILER_SRCS}) add_library(tvm_runtime_objs OBJECT ${RUNTIME_SRCS}) add_library(tvm_libinfo_objs OBJECT ${LIBINFO_FILE}) +include(GNUInstallDirs) if(NOT BUILD_DUMMY_LIBTVM) add_library(tvm SHARED $ $ $) else() @@ -783,7 +784,6 @@ else(INSTALL_DEV) ) endif(INSTALL_DEV) -include(GNUInstallDirs) include(CMakePackageConfigHelpers) set(PROJECT_CONFIG_CONTENT "@PACKAGE_INIT@\n") string(APPEND PROJECT_CONFIG_CONTENT "include(CMakeFindDependencyMacro)\n")