llvm.org GIT mirror llvm / 2b45a08
[Modules] llvm-config: Exclude CMAKE_CFG_INTDIR. It isn't used in headers. This is part of https://reviews.llvm.org/D35559 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309552 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 2 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5858 # Set build-time environment(s).
5959 add_definitions(-DCMAKE_CFG_INTDIR="${CMAKE_CFG_INTDIR}")
6060
61 if(LLVM_ENABLE_MODULES)
62 target_compile_options(llvm-config PUBLIC
63 "-fmodules-ignore-macro=CMAKE_CFG_INTDIR"
64 )
65 endif()
66
6167 # Add the dependency on the generation step.
6268 add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/llvm-config.cpp ${BUILDVARIABLES_OBJPATH})
6369