mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-23 14:39:15 +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")
|
||||
set(SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tableam.c
|
||||
@ -7,8 +9,7 @@ if (${PG_VERSION_MAJOR} LESS "12")
|
||||
endif ()
|
||||
|
||||
if (${PG_VERSION_MAJOR} LESS "11")
|
||||
set(SOURCES
|
||||
${SOURCES}
|
||||
list(APPEND SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fkeylist.c
|
||||
)
|
||||
endif ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user