@@ -13,6 +13,9 @@ if (WIN32 AND ENABLE_FLEX)
13
13
14
14
git_submodule_init(winflexbison CMakeLists.txt)
15
15
16
+ set (FLEX_DEPENDS PATCH)
17
+ TargetVars(FLEX_DEPENDS)
18
+
16
19
ExternalProject_Add(FLEX_BLD
17
20
URL "${CMAKE_CURRENT_SOURCE_DIR} /winflexbison"
18
21
BUILD_ALWAYS ${EXT_BUILD_ALWAYS} ${LOG_OPTS}
@@ -31,13 +34,19 @@ if (WIN32 AND ENABLE_FLEX)
31
34
LOG_OUTPUT_ON_FAILURE ${EXT_BUILD_QUIET}
32
35
STEP_TARGETS install
33
36
)
37
+
38
+ TargetInstallDeps(FLEX FLEX_DEPENDS)
39
+
34
40
endif (WIN32 AND ENABLE_FLEX)
35
41
36
42
if (NOT WIN32 )
37
43
if (ENABLE_FLEX)
38
44
39
45
git_submodule_init(flex configure)
40
46
47
+ set (FLEX_DEPENDS PATCH)
48
+ TargetVars(FLEX_DEPENDS)
49
+
41
50
set (FLEX_SRC_DIR "${CMAKE_CURRENT_BINARY_DIR} /FLEX_BLD-prefix/src/FLEX_BLD" )
42
51
43
52
ExternalProject_Add(FLEX_BLD
@@ -56,11 +65,17 @@ if (NOT WIN32)
56
65
LOG_OUTPUT_ON_FAILURE ${EXT_BUILD_QUIET}
57
66
STEP_TARGETS install
58
67
)
68
+
69
+ TargetInstallDeps(FLEX FLEX_DEPENDS)
70
+
59
71
endif (ENABLE_FLEX)
60
72
if (ENABLE_BISON)
61
73
62
74
git_submodule_init(bison configure)
63
75
76
+ set (BISON_DEPENDS PATCH)
77
+ TargetVars(BISON_DEPENDS)
78
+
64
79
set (BISON_SRC_DIR "${CMAKE_CURRENT_BINARY_DIR} /BISON_BLD-prefix/src/BISON_BLD" )
65
80
66
81
ExternalProject_Add(BISON_BLD
@@ -80,17 +95,13 @@ if (NOT WIN32)
80
95
LOG_OUTPUT_ON_FAILURE ${EXT_BUILD_QUIET}
81
96
STEP_TARGETS install
82
97
)
98
+
99
+ TargetInstallDeps(BISON BISON_DEPENDS)
100
+
83
101
endif (ENABLE_BISON)
84
102
85
103
endif (NOT WIN32 )
86
104
87
- if (TARGET PATCH_BLD AND TARGET FLEX_BLD)
88
- ExternalProject_Add_StepDependencies(FLEX_BLD configure PATCH_BLD-install )
89
- endif (TARGET PATCH_BLD AND TARGET FLEX_BLD)
90
- if (TARGET PATCH_BLD AND TARGET BISON_BLD)
91
- ExternalProject_Add_StepDependencies(BISON_BLD configure PATCH_BLD-install )
92
- endif (TARGET PATCH_BLD AND TARGET BISON_BLD)
93
-
94
105
# Local Variables:
95
106
# tab-width: 8
96
107
# mode: cmake
0 commit comments