Fossil SCM
Add the debug and autoconfig compile definitions; needed for source browsing.
Commit
fabe2d41e8c5b07bb6a098d27a79f3b18fea162d718194ed89a4298733690be5
Parent
4d8aecdfcf0ca35…
1 file changed
+10
+10
| --- CMakeLists.txt | ||
| +++ CMakeLists.txt | ||
| @@ -135,10 +135,16 @@ | ||
| 135 | 135 | # binary can be located at the fixed location on target platform. |
| 136 | 136 | # |
| 137 | 137 | # Then we define CMake install targets to copy the binaries from the local |
| 138 | 138 | # binary dir. |
| 139 | 139 | # |
| 140 | + | |
| 141 | +if(isDebugBuild) | |
| 142 | + set_property(DIRECTORY APPEND PROPERTY | |
| 143 | + COMPILE_DEFINITIONS FOSSIL_DEBUG | |
| 144 | + ) | |
| 145 | +endif() | |
| 140 | 146 | |
| 141 | 147 | set(fossil_build_FLAGS "") |
| 142 | 148 | if(build_FLAGS) |
| 143 | 149 | set(fossil_build_FLAGS ${build_FLAGS}) |
| 144 | 150 | endif() |
| @@ -164,10 +170,14 @@ | ||
| 164 | 170 | INSTALL_COMMAND "" |
| 165 | 171 | STEP_TARGETS configure build install |
| 166 | 172 | ) |
| 167 | 173 | |
| 168 | 174 | else(MSVC) |
| 175 | + | |
| 176 | + set_property(DIRECTORY APPEND PROPERTY | |
| 177 | + COMPILE_DEFINITIONS HAVE_AUTOCONFIG_H;_HAVE_SQLITE_CONFIG_H | |
| 178 | + ) | |
| 169 | 179 | |
| 170 | 180 | file(RELATIVE_PATH fossil_DESTDIR "${fossil_BINARY_DIR}" "${fossil_INSTALL_DIR}") |
| 171 | 181 | |
| 172 | 182 | ExternalProject_Add(fossil |
| 173 | 183 | PREFIX fossil |
| 174 | 184 |
| --- 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 |