@@ -268,16 +268,13 @@ endmacro()
268
268
# cmake variables.
269
269
macro (swift_common_unified_build_config product )
270
270
set (${product} _PATH_TO_CLANG_BUILD "${CMAKE_BINARY_DIR} " )
271
- set (CLANG_MAIN_INCLUDE_DIR "${LLVM_EXTERNAL_CLANG_SOURCE_DIR} /include" )
272
- set (CLANG_BUILD_INCLUDE_DIR "${CMAKE_BINARY_DIR} /tools/clang/include" )
273
271
set (${product} _NATIVE_LLVM_TOOLS_PATH "${CMAKE_BINARY_DIR} /bin" )
274
272
set (${product} _NATIVE_CLANG_TOOLS_PATH "${CMAKE_BINARY_DIR} /bin" )
275
273
set (LLVM_PACKAGE_VERSION ${PACKAGE_VERSION} )
276
274
set (LLVM_CMAKE_DIR "${CMAKE_SOURCE_DIR} /cmake/modules" )
277
- set (CLANG_INCLUDE_DIRS
278
- "${CLANG_MAIN_INCLUDE_DIR} "
279
- "${CLANG_BUILD_INCLUDE_DIR} "
280
- )
275
+
276
+ include_directories (${LLVM_EXTERNAL_CLANG_SOURCE_DIR} /include
277
+ ${CMAKE_BINARY_DIR} /tools/clang/include )
281
278
282
279
# If cmark was checked out into tools/cmark, expect to build it as
283
280
# part of the unified build.
@@ -293,16 +290,10 @@ macro(swift_common_unified_build_config product)
293
290
get_filename_component (CMARK_LIBRARY_DIR "${${product} _CMARK_LIBRARY_DIR}"
294
291
ABSOLUTE )
295
292
296
- set ( CMARK_BUILD_INCLUDE_DIR " ${PATH_TO_CMARK_BUILD} /src" )
297
- set ( CMARK_MAIN_INCLUDE_DIR " ${CMARK_MAIN_SRC_DIR} /src/include" )
293
+ include_directories ( ${PATH_TO_CMARK_BUILD} /src
294
+ ${CMARK_MAIN_SRC_DIR} /src/include )
298
295
endif ()
299
296
300
- include_directories (
301
- "${CLANG_BUILD_INCLUDE_DIR} "
302
- "${CLANG_MAIN_INCLUDE_DIR} "
303
- "${CMARK_MAIN_INCLUDE_DIR} "
304
- "${CMARK_BUILD_INCLUDE_DIR} " )
305
-
306
297
include (AddSwiftTableGen ) # This imports TableGen from LLVM.
307
298
308
299
check_cxx_compiler_flag ("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
0 commit comments