gotm-model / code

Source code for the General Ocean Turbulence Model
https://gotm.net
GNU General Public License v2.0
53 stars 44 forks source link

CMake in turbulence library mode #20

Open qingli411 opened 3 years ago

qingli411 commented 3 years ago

Building only the turbulence library using cmake with -DGOTM_BUILD_LIBRARIES_ONLY=true fails in the v6.0.0 release (and the master branch as well) due to a missing dependency on input when building airsea. I don't think airsea is needed in the turbulence library, right? So moving the following line after the check on GOTM_BUILD_LIBRARIES_ONLY seems to fix this. I didn't check if this change breaks the building with FABM etc though... @bolding @jornbr

https://github.com/gotm-model/code/blob/7b8078bdf9418383802c15e6dc0802836d98067e/src/CMakeLists.txt#L52