Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-07-19 02:53:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-19 02:53:38 +0300
commit23c76039d9bf9425b299599cc40fbba0b02ae0a9 (patch)
tree972357b1761f2bdaa56b62c053389a2bbfd50f23 /source/creator
parent1e10e4e2e319ca764d49bb625574e01cd643288b (diff)
CMake: correct generated location for buildinfo.h
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 09d85690e30..2dc995abb76 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -165,20 +165,20 @@ if(WITH_BUILDINFO)
# except when used as an include path.
# include the output directory, where the buildinfo.h file is generated
- include_directories(${CMAKE_BINARY_DIR}/source/creator)
+ include_directories(${CMAKE_CURRENT_BINARY_DIR})
# a custom target that is always built
add_custom_target(buildinfo ALL
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/buildinfo.h)
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/buildinfo.h)
- # creates svnheader.h using cmake script
- add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/buildinfo.h
+ # creates buildinfo.h using cmake script
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/buildinfo.h
COMMAND ${CMAKE_COMMAND}
-DSOURCE_DIR=${CMAKE_SOURCE_DIR}
-P ${CMAKE_SOURCE_DIR}/build_files/cmake/buildinfo.cmake)
# buildinfo.h is a generated file
- set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/buildinfo.h
+ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/buildinfo.h
PROPERTIES GENERATED TRUE
HEADER_FILE_ONLY TRUE)