Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error - list does not recognize sub-command PREPEND #11141

Closed
Keitagit-kun opened this issue May 18, 2023 · 2 comments
Closed

cmake error - list does not recognize sub-command PREPEND #11141

Keitagit-kun opened this issue May 18, 2023 · 2 comments

Comments

@Keitagit-kun
Copy link

8.1.0 introdused new problem in cmake - at configure i get:

CMake Error at CMakeLists.txt:528 (list):
  list does not recognize sub-command PREPEND

culprit is list(PREPEND CURL_LIBS ${BROTLI_LIBRARIES}) line added in cmake: picky-linker fixes for openssl, ZLIB, H3 and more #10857
it not supported in cmake up to 3.10.1 and 3.12.4 (max I can use) while declared version is 3.7:
cmake_minimum_required(VERSION 3.7...3.16 FATAL_ERROR)
(my C compiler identification is GNU 7.2.0)

@bagder
Copy link
Member

bagder commented May 18, 2023

@vszakats can you have a look ?

@bagder bagder added the cmake label May 18, 2023
vszakats added a commit to vszakats/curl that referenced this issue May 18, 2023
PREPEND requires CMake 3.15.

Ref: https://cmake.org/cmake/help/latest/command/list.html#prepend

Regression from 1e3319a

Reported-by: Keitagit-kun on Github
Fixes curl#11141
Closes #xxxxx
vszakats added a commit to vszakats/curl that referenced this issue May 18, 2023
`list(PREPEND)` requires CMake v3.15, our minimum is v3.7.

Ref: https://cmake.org/cmake/help/latest/command/list.html#prepend

Regression from 1e3319a

Reported-by: Keitagit-kun on Github
Fixes curl#11141
Closes #xxxxx
@Keitagit-kun
Copy link
Author

Thanks, it configured OK
I still have some strange thing on compile time (compile itself is successful, lib works OK) so I create another issue ...

bch pushed a commit to bch/curl that referenced this issue Jul 19, 2023
`list(PREPEND)` requires CMake v3.15, our minimum is v3.7.

Ref: https://cmake.org/cmake/help/latest/command/list.html#prepend

Regression from 1e3319a

Reported-by: Keitagit-kun on Github
Fixes curl#11141
Closes curl#11144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants