File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,11 @@ endif()
73
73
74
74
if ("${MOZART_BUILD_DIR} /" MATCHES "${MOZART_DIR} /.*" )
75
75
message (STATUS "Building inside the source tree: 'dist' target disabled" )
76
+ set (DIST_TARGET_ENABLED FALSE )
76
77
else ()
77
78
message (STATUS "Building outside the source tree: 'dist' target enabled" )
78
79
add_custom_target (dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
80
+ set (DIST_TARGET_ENABLED TRUE )
79
81
configure_file (cmake_local/MozartConfigVersion.cmake.in
80
82
${CMAKE_CURRENT_BINARY_DIR} /cmake_local/MozartConfigVersion.cmake @ONLY)
81
83
define_property (GLOBAL PROPERTY SRCS_INSTALLED_DIRS
Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ add_custom_target(genboostsources
103
103
set_property (GLOBAL APPEND PROPERTY SRCS_INSTALLED_DIRS
104
104
"${GENERATED_BOOSTSOURCES_DIR} " "/vm/boostenv/main/cached/" )
105
105
106
- add_dependencies (dist genboostsources)
106
+ if (DIST_TARGET_ENABLED)
107
+ add_dependencies (dist genboostsources)
108
+ endif ()
107
109
108
110
# Boost environment library
109
111
include_directories (${GENERATED_BOOSTSOURCES_DIR} )
Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ add_custom_target(gensources
72
72
set_property (GLOBAL APPEND PROPERTY SRCS_INSTALLED_DIRS
73
73
"${GENERATED_SOURCES_DIR} " "/vm/vm/main/cached/" )
74
74
75
- add_dependencies (dist gensources)
75
+ if (DIST_TARGET_ENABLED)
76
+ add_dependencies (dist gensources)
77
+ endif ()
76
78
77
79
78
80
# Build the library
You can’t perform that action at this time.
0 commit comments