Index: llvm/cmake/modules/CMakeLists.txt =================================================================== --- llvm/cmake/modules/CMakeLists.txt +++ llvm/cmake/modules/CMakeLists.txt @@ -135,7 +135,11 @@ # Generate a default location for lit if (LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS) - set(LLVM_CONFIG_DEFAULT_EXTERNAL_LIT "${LLVM_CONFIG_TOOLS_BINARY_DIR}/llvm-lit") + if (CMAKE_HOST_WIN32 AND NOT CYGWIN) + set(LLVM_CONFIG_DEFAULT_EXTERNAL_LIT "${LLVM_CONFIG_TOOLS_BINARY_DIR}/llvm-lit.py") + else() + set(LLVM_CONFIG_DEFAULT_EXTERNAL_LIT "${LLVM_CONFIG_TOOLS_BINARY_DIR}/llvm-lit") + endif() endif() get_config_exports_includes(LLVM LLVM_CONFIG_INCLUDE_EXPORTS)