mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-23 22:41:34 +08:00
Fix error in compat/CMakeList.txt
The `CMakeLists.txt` in `src/compat` was conditionally reusing the variable `SOURCES` inherited from above, which contained relative paths not related to this directory. This caused `target_sources` to generate a warning. This commit fixes this by setting `SOURCES` to be empty first in the file.
This commit is contained in:
parent
082a9ffedc
commit
38c9f17a0e
@ -1,3 +1,5 @@
|
|||||||
|
set(SOURCES)
|
||||||
|
|
||||||
if (${PG_VERSION_MAJOR} LESS "12")
|
if (${PG_VERSION_MAJOR} LESS "12")
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tableam.c
|
${CMAKE_CURRENT_SOURCE_DIR}/tableam.c
|
||||||
@ -7,8 +9,7 @@ if (${PG_VERSION_MAJOR} LESS "12")
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (${PG_VERSION_MAJOR} LESS "11")
|
if (${PG_VERSION_MAJOR} LESS "11")
|
||||||
set(SOURCES
|
list(APPEND SOURCES
|
||||||
${SOURCES}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/fkeylist.c
|
${CMAKE_CURRENT_SOURCE_DIR}/fkeylist.c
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user