Skip to content

Commit 009e6fe

Browse files
committed
Default build with pre-generated source, use of MOZART_CACHED_BUILD
1 parent d7cc1d4 commit 009e6fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cmake_local/MozartProperties.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ target_architecture(MOZART_PROP_PLATFORM_ARCH)
1717
# For source tarballs, oz.version and os.date
1818
# are exported id MozartConfigVersion.cmake
1919
include(MozartConfigVersion
20-
RESULT_VARIABLE MOZART_CACHED_BUILD OPTIONAL)
20+
RESULT_VARIABLE MOZART_SOURCE_TARBALL_BUILD OPTIONAL)
2121

2222
# oz.version
2323

24-
if(NOT MOZART_CACHED_BUILD)
24+
if(NOT MOZART_SOURCE_TARBALL_BUILD)
2525
execute_process(
2626
COMMAND ${GIT_EXECUTABLE} describe --dirty
2727
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
@@ -45,7 +45,7 @@ endif()
4545

4646
# oz.date
4747

48-
if(NOT MOZART_CACHED_BUILD)
48+
if(NOT MOZART_SOURCE_TARBALL_BUILD)
4949
execute_process(
5050
COMMAND ${GIT_EXECUTABLE} log "--format=%aD" -1
5151
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"

vm/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ set(LLVM_BUILD_DIR ${DEFAULT_LLVM_BUILD_DIR} CACHE PATH "Path to LLVM build (wit
1313
set(MOZART_GENERATOR_FLAGS "${DEFAULT_MOZART_GENERATOR_FLAGS}" CACHE STRING
1414
"Additional flags for the generator parser (clang)")
1515

16+
set(MOZART_CACHED_BUILD ON CACHE STRING "Use pre-generated sources")
17+
1618
add_compile_options(-std=c++0x)
1719

1820
add_subdirectory(generator)

0 commit comments

Comments
 (0)