llvm.org GIT mirror llvm / 5b6663a
[CMake] Get rid of generating obj.*-tblgen if CMake >= 3.9 for Ninja generator. CMake-3.9 doesn't let compilation units depend on their dependent libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305635 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 2 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
103103 set(${target}_OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS})
104104 set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen)
105105
106 if(NOT XCODE)
106 # CMake-3.9 doesn't let compilation units depend on their dependent libraries.
107 if(NOT (CMAKE_GENERATOR STREQUAL "Ninja" AND NOT CMAKE_VERSION VERSION_LESS 3.9) AND NOT XCODE)
107108 # FIXME: It leaks to user, callee of add_tablegen.
108109 set(LLVM_ENABLE_OBJLIB ON)
109110 endif()