File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ function(tablegen project ofn)
8
8
message (FATAL_ERROR "${project} _TABLEGEN_EXE not set" )
9
9
endif ()
10
10
11
- # Use depfile instead of globbing arbitrary *.td(s)
12
- # DEPFILE is available for Ninja Generator with CMake>=3.7.
13
- if (CMAKE_GENERATOR STREQUAL "Ninja" AND NOT CMAKE_VERSION VERSION_LESS 3.7 )
11
+ # Use depfile instead of globbing arbitrary *.td(s) for Ninja.
12
+ if (CMAKE_GENERATOR STREQUAL "Ninja" )
14
13
# Make output path relative to build.ninja, assuming located on
15
14
# ${CMAKE_BINARY_DIR}.
16
15
# CMake emits build targets as relative paths but Ninja doesn't identify
@@ -134,8 +133,8 @@ macro(add_tablegen target project)
134
133
set (${target} _OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} )
135
134
set (LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen )
136
135
137
- # CMake-3.9 doesn't let compilation units depend on their dependent libraries.
138
- if (NOT ( CMAKE_GENERATOR STREQUAL "Ninja" AND NOT CMAKE_VERSION VERSION_LESS 3.9 ) AND NOT XCODE )
136
+ # CMake doesn't let compilation units depend on their dependent libraries on some generators .
137
+ if (NOT CMAKE_GENERATOR STREQUAL "Ninja" AND NOT XCODE )
139
138
# FIXME: It leaks to user, callee of add_tablegen.
140
139
set (LLVM_ENABLE_OBJLIB ON )
141
140
endif ()
You can’t perform that action at this time.
0 commit comments