llvm.org GIT mirror llvm / 0968105
[CMake] Bug 23468 - LLVM_OPTIMIZED_TABLEGEN does not work with Visual Studio Summary: Multi-configuration builds put their binaries into ${CMAKE_BINARY_DIR}/Release/bin/. The table-gen cross-compilation support needs to take that into account. Reviewers: yaron.keren Reviewed By: yaron.keren Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10102 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238592 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9393
9494 if(LLVM_USE_HOST_TOOLS)
9595 if( ${${project}_TABLEGEN} STREQUAL "${target}" )
96 set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/bin/${target}")
96 if (NOT CMAKE_CONFIGURATION_TYPES)
97 set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/bin/${target}")
98 else()
99 set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/Release/bin/${target}")
100 endif()
97101 set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)
98102
99103 add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE}