# Macos::glew:: cmake restriction without upper limit

**URL:** <https://root-forum.cern.ch/t/macos-cmake-restriction-without-upper-limit/51484>\
**Category:** ROOT\
**Tags:** build, bug\
**Created:** [September 7, 2022, 11:37am UTC](https://root-forum.cern.ch/t/macos-cmake-restriction-without-upper-limit/51484 "2022-09-07T11:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian\_sev](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/adrian_sev/32/13169_2.png) [@adrian\_sev](https://root-forum.cern.ch/u/adrian_sev)\
**Post date:** [September 7, 2022, 11:37am UTC](https://root-forum.cern.ch/t/macos-cmake-restriction-without-upper-limit/51484/1 "2022-09-07T11:37:00Z")

</div>

Hi! I encountered an error message of the type:

```auto
-- Looking for GLEW
-- Found GLEW: /usr/local/lib/cmake/glew/glew-config.cmake  
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:589 (message):
  Please enable builtin Glew due bug in latest CMake (use cmake option
  -Dbuiltin_glew=ON).
Call Stack (most recent call first):
  CMakeLists.txt:245 (include)

```

and i found the problem to be related to

> <https://github.com/root-project/root/blob/master/cmake/modules/SearchInstalledSoftware.cmake#L613>

we are using cmake v3.23.1  
i seen that [FindGLEW module fails to define variables if config is presented (#19662) · Issues · CMake / CMake · GitLab](https://gitlab.kitware.com/cmake/cmake/-/issues/19662) was closed quite some time ago…  
is this still valid? maybe the restriction should have also an upper version?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [September 7, 2022, 1:51pm UTC](https://root-forum.cern.ch/t/macos-cmake-restriction-without-upper-limit/51484/2 "2022-09-07T13:51:48Z")

</div>

Hi @adrian_sev ,

thank you for the ping, we probably need @bellenot to take a look (and possibly @oshadura to comment 😃 ).

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [September 21, 2022, 1:52pm UTC](https://root-forum.cern.ch/t/macos-cmake-restriction-without-upper-limit/51484/3 "2022-09-21T13:52:22Z")

</div>

Closed on September 21, 2022, 1:52pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
