From 4c3faa9a3d020f6408b663cff29c32b67ca827d2 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sun, 14 Oct 2012 05:02:42 +0200 Subject: [PATCH] Fixed GCC builtin header generation for out-of-source builds. --- runtime/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 67260cff..bbcf5a5e 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -267,9 +267,9 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix) if(EXISTS ${RUNTIME_DIR}) set(GCCBUILTINS "${PROJECT_BINARY_DIR}/gccbuiltins_x86.di") add_custom_command( - OUTPUT ${GCCBUILTINS} - COMMAND ${PROJECT_PARENT_DIR}/bin/gen_gccbuiltins ${GCCBUILTINS} "x86" - DEPENDS ${PROJECT_PARENT_DIR}/bin/gen_gccbuiltins + OUTPUT ${GCCBUILTINS} + COMMAND ${PROJECT_BINARY_DIR}/../bin/gen_gccbuiltins ${GCCBUILTINS} "x86" + DEPENDS ${PROJECT_BINARY_DIR}/../bin/gen_gccbuiltins ) if(BUILD_SINGLE_LIB) add_library(${RUNTIME_AIO}${target_suffix}