# FindOctave.cmake in CMake Community Wiki broken for Octave 5

**URL:** <https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079>\
**Category:** Community\
**Created:** [April 22, 2020, 8:36pm UTC](https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079 "2020-04-22T20:36:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![traversaro](https://discourse.cmake.org/user_avatar/discourse.cmake.org/traversaro/32/546_2.png) [@traversaro](https://discourse.cmake.org/u/traversaro)\
**Post date:** [April 22, 2020, 8:36pm UTC](https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079/1 "2020-04-22T20:36:55Z")

</div>

Hi everyone,  
I am not sure this is the right place were to discuss this, but given that the CMake Wiki is listed under “Community” in GitLab, this is my best guess.

We recently discovered that the FindOctave.cmake is broken when used with Octave 5, because in Octave 5 the support for `octave-config -p PREFIX` has been removed (see [https://github.com/NexMirror/Octave/commit/533db703ce624136b439a19a41f406a8772b9aad#diff-659cce8e2827126070ace2206360d607](https://github.com/NexMirror/Octave/commit/533db703ce624136b439a19a41f406a8772b9aad#diff-659cce8e2827126070ace2206360d607)).

If you don’t need the variable `OCTAVE_ROOT_DIR` the fix is relatively easy and it is to remove `OCTAVE_ROOT_DIR` from the script, see [https://github.com/robotology/idyntree/pull/677/commits/571744fa4bf771b0fb755ef9f616d05d371c7b06](https://github.com/robotology/idyntree/pull/677/commits/571744fa4bf771b0fb755ef9f616d05d371c7b06) . However, I don’t know what is the suggested way to do modify the wiki? Discuss the changes here before?

Related discussion: github.com/robotology/idyntree/pull/677 .

---

<div class="post-metadata">

**Author:** ![traversaro](https://discourse.cmake.org/user_avatar/discourse.cmake.org/traversaro/32/546_2.png) [@traversaro](https://discourse.cmake.org/u/traversaro)\
**Post date:** [April 22, 2020, 8:42pm UTC](https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079/2 "2020-04-22T20:42:26Z")

</div>

Apparently it is also broken for Octave 4, but I had completely forgot about it: [https://github.com/robotology/ycm/pull/98](https://github.com/robotology/ycm/pull/98) .

---

<div class="post-metadata">

**Author:** ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)\
**Post date:** [April 23, 2020, 10:50am UTC](https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079/3 "2020-04-23T10:50:00Z")

</div>

@traversaro I’ve added you to the wiki project members so you can edit now. Thanks!
