Fossil

Check-in [fabe2d41]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add the debug and autoconfig compile definitions; needed for source browsing.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | cmake-ide
Files: files | file ages | folders
SHA3-256: fabe2d41e8c5b07bb6a098d27a79f3b18fea162d718194ed89a4298733690be5
User & Date: ashepilko 2020-01-09 18:26:06.443
Context
2020-01-09
23:50
Merge in trunk ... (check-in: 001eb6d5 user: ashepilko tags: cmake-ide)
18:26
Add the debug and autoconfig compile definitions; needed for source browsing. ... (check-in: fabe2d41 user: ashepilko tags: cmake-ide)
17:57
Merge in trunk ... (check-in: 4d8aecdf user: ashepilko tags: cmake-ide)
Changes
Unified Diff Ignore Whitespace Patch
Changes to CMakeLists.txt.
133
134
135
136
137
138
139






140
141
142
143
144
145
146
#
# Install the resulting binary into the local binary dir, such that the fossil
# binary can be located at the fixed location on target platform.
#
# Then we define CMake install targets to copy the binaries from the local
# binary dir.
#







set(fossil_build_FLAGS "")
if(build_FLAGS)
    set(fossil_build_FLAGS ${build_FLAGS})
endif()

separate_arguments(fossil_configure_FLAGS)







>
>
>
>
>
>







133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#
# Install the resulting binary into the local binary dir, such that the fossil
# binary can be located at the fixed location on target platform.
#
# Then we define CMake install targets to copy the binaries from the local
# binary dir.
#

if(isDebugBuild)
    set_property(DIRECTORY APPEND PROPERTY
        COMPILE_DEFINITIONS FOSSIL_DEBUG
    )
endif()

set(fossil_build_FLAGS "")
if(build_FLAGS)
    set(fossil_build_FLAGS ${build_FLAGS})
endif()

separate_arguments(fossil_configure_FLAGS)
162
163
164
165
166
167
168




169
170
171
172
173
174
175
                      install DESTDIR=${fossil_DESTDIR}
                      VERBATIM
        INSTALL_COMMAND ""
        STEP_TARGETS configure build install
    )

else(MSVC)





    file(RELATIVE_PATH fossil_DESTDIR "${fossil_BINARY_DIR}" "${fossil_INSTALL_DIR}")

    ExternalProject_Add(fossil
        PREFIX fossil
        SOURCE_DIR "${fossil_SOURCE_DIR}"
        CONFIGURE_COMMAND "${fossil_SOURCE_DIR}/configure"







>
>
>
>







168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
                      install DESTDIR=${fossil_DESTDIR}
                      VERBATIM
        INSTALL_COMMAND ""
        STEP_TARGETS configure build install
    )

else(MSVC)

    set_property(DIRECTORY APPEND PROPERTY
        COMPILE_DEFINITIONS HAVE_AUTOCONFIG_H;_HAVE_SQLITE_CONFIG_H
    )

    file(RELATIVE_PATH fossil_DESTDIR "${fossil_BINARY_DIR}" "${fossil_INSTALL_DIR}")

    ExternalProject_Add(fossil
        PREFIX fossil
        SOURCE_DIR "${fossil_SOURCE_DIR}"
        CONFIGURE_COMMAND "${fossil_SOURCE_DIR}/configure"