# CMake: Oracle enabled by default?

**URL:** <https://root-forum.cern.ch/t/cmake-oracle-enabled-by-default/39403>\
**Category:** Newbie\
**Tags:** cmake\
**Created:** [May 14, 2020, 7:52am UTC](https://root-forum.cern.ch/t/cmake-oracle-enabled-by-default/39403 "2020-05-14T07:52:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reik](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/reik/32/17302_2.png) [@Reik](https://root-forum.cern.ch/u/Reik)\
**Post date:** [May 14, 2020, 7:52am UTC](https://root-forum.cern.ch/t/cmake-oracle-enabled-by-default/39403/1 "2020-05-14T07:52:33Z")

</div>

* * *

_ROOT Version:_ master  
_Platform:_ Linux 5.4 (Manjaro)  
_Compiler:_ GCC 9.3

* * *

It seems like `-Doracle` flag is enabled by default (I did not notice this behaviour earlier - I never explicitly enabled the oracle flag). Is this desired behaviour?

Unless I turn off the flag explicitly, I run into this error -

```auto
CMake Error at cmake/modules/FindOracle.cmake:116 (MESSAGE):
  Set -DORACLE_OCI_VERSION for your oci. [8, 8I, 9I, 10G, 10G_R2]

```

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [May 14, 2020, 4:05pm UTC](https://root-forum.cern.ch/t/cmake-oracle-enabled-by-default/39403/2 "2020-05-14T16:05:47Z")

</div>

By default the config tries to build several plugins _if_ the underlying requirement are there. I suspect your case oracle is only “partially” there.
