Fix to be compliant with cmake
Merge pull request #569 from iLoop2/ERT-OSX_cmake

Fix to be compliant with cmake