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

[bug] invalid cmake syntax (use of CACHE INTERNAL with list command) #133

Open
Znerole opened this issue Feb 7, 2022 · 1 comment
Open

Comments

@Znerole
Copy link

Znerole commented Feb 7, 2022

When updating CMAKE_FIND_ROOT_PATH, invalid syntax is used:

list(APPEND CMAKE_FIND_ROOT_PATH "${CMAKE_OSX_SYSROOT_INT}" CACHE INTERNAL "")

CACHE INTERNAL "" is not allowed with list. As a result, CMAKE_FIND_ROOT_PATH contains the literal entries "CACHE" and "INTERNAL".

Since with CMake I'm always a bit at a loss on what belongs to the cache, I have not idea how to correctly fix this. Possible fixes would be:

  set(CMAKE_FIND_ROOT_PATH "${CMAKE_FIND_ROOT_PATH};${CMAKE_OSX_SYSROOT_INT}" CACHE INTERNAL "")

or maybe just

  list(APPEND CMAKE_FIND_ROOT_PATH "${CMAKE_OSX_SYSROOT_INT}")
@Znerole Znerole changed the title invalid cmake syntax (use of CACHE INTERNAL with list command) [bug] invalid cmake syntax (use of CACHE INTERNAL with list command) Feb 7, 2022
@leetal
Copy link
Owner

leetal commented Apr 4, 2022

Hi! Thanks for reporting this. I'll definitely fix this in the upcoming version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants