Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jirislaby:statica
llvmdg
0001-cmake-fix-build-in-separate-directory.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-cmake-fix-build-in-separate-directory.patch of Package llvmdg
From: Jiri Slaby <slaby@fi.muni.cz> Date: Wed, 8 Nov 2017 16:36:23 +0100 Subject: cmake: fix build in separate directory Patch-mainline: no git-version.sh cannot be found when cmake is configured in a different build dir. Signed-off-by: Jiri Slaby <slaby@fi.muni.cz> --- tools/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 133c5e99632a..eaa178bf60c0 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -4,8 +4,9 @@ if (LLVM_DG) # generate a git-version.h with a HEAD commit hash tag # (if it changed) add_custom_target( - gitversion ALL sh git-version.sh + gitversion ALL sh ${CMAKE_CURRENT_SOURCE_DIR}/git-version.sh ) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(llvm-dg-dump llvm-dg-dump.cpp) target_link_libraries(llvm-dg-dump LLVMdg) @@ -30,5 +31,5 @@ if (LLVM_DG) RUNTIME DESTINATION bin) endif (LLVM_DG) -include_directories('../src') +include_directories(../src) -- 2.15.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor