Fossil SCM

Add the debug and autoconfig compile definitions; needed for source browsing.

ashepilko 2020-01-09 18:26 cmake-ide
Commit fabe2d41e8c5b07bb6a098d27a79f3b18fea162d718194ed89a4298733690be5
1 file changed +10
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -135,10 +135,16 @@
135135
# binary can be located at the fixed location on target platform.
136136
#
137137
# Then we define CMake install targets to copy the binaries from the local
138138
# binary dir.
139139
#
140
+
141
+if(isDebugBuild)
142
+ set_property(DIRECTORY APPEND PROPERTY
143
+ COMPILE_DEFINITIONS FOSSIL_DEBUG
144
+ )
145
+endif()
140146
141147
set(fossil_build_FLAGS "")
142148
if(build_FLAGS)
143149
set(fossil_build_FLAGS ${build_FLAGS})
144150
endif()
@@ -164,10 +170,14 @@
164170
INSTALL_COMMAND ""
165171
STEP_TARGETS configure build install
166172
)
167173
168174
else(MSVC)
175
+
176
+ set_property(DIRECTORY APPEND PROPERTY
177
+ COMPILE_DEFINITIONS HAVE_AUTOCONFIG_H;_HAVE_SQLITE_CONFIG_H
178
+ )
169179
170180
file(RELATIVE_PATH fossil_DESTDIR "${fossil_BINARY_DIR}" "${fossil_INSTALL_DIR}")
171181
172182
ExternalProject_Add(fossil
173183
PREFIX fossil
174184
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -135,10 +135,16 @@
135 # binary can be located at the fixed location on target platform.
136 #
137 # Then we define CMake install targets to copy the binaries from the local
138 # binary dir.
139 #
 
 
 
 
 
 
140
141 set(fossil_build_FLAGS "")
142 if(build_FLAGS)
143 set(fossil_build_FLAGS ${build_FLAGS})
144 endif()
@@ -164,10 +170,14 @@
164 INSTALL_COMMAND ""
165 STEP_TARGETS configure build install
166 )
167
168 else(MSVC)
 
 
 
 
169
170 file(RELATIVE_PATH fossil_DESTDIR "${fossil_BINARY_DIR}" "${fossil_INSTALL_DIR}")
171
172 ExternalProject_Add(fossil
173 PREFIX fossil
174
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -135,10 +135,16 @@
135 # binary can be located at the fixed location on target platform.
136 #
137 # Then we define CMake install targets to copy the binaries from the local
138 # binary dir.
139 #
140
141 if(isDebugBuild)
142 set_property(DIRECTORY APPEND PROPERTY
143 COMPILE_DEFINITIONS FOSSIL_DEBUG
144 )
145 endif()
146
147 set(fossil_build_FLAGS "")
148 if(build_FLAGS)
149 set(fossil_build_FLAGS ${build_FLAGS})
150 endif()
@@ -164,10 +170,14 @@
170 INSTALL_COMMAND ""
171 STEP_TARGETS configure build install
172 )
173
174 else(MSVC)
175
176 set_property(DIRECTORY APPEND PROPERTY
177 COMPILE_DEFINITIONS HAVE_AUTOCONFIG_H;_HAVE_SQLITE_CONFIG_H
178 )
179
180 file(RELATIVE_PATH fossil_DESTDIR "${fossil_BINARY_DIR}" "${fossil_INSTALL_DIR}")
181
182 ExternalProject_Add(fossil
183 PREFIX fossil
184

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button