Goddard-Fortran-Ecosystem / pFUnit

Parallel Fortran Unit Testing Framework
Other
172 stars 45 forks source link

CMake: Use <project-name>_BINARY_DIR to find dependencies #328

Closed ZedThree closed 2 years ago

ZedThree commented 2 years ago

This should be more robust than setting path relative to CMAKE_BINARY_DIR

I'm not sure if something changed, but I'm now no longer able to link other projects against pFUnit's build directory. <project-name>_BINARY_DIR has been in CMake since at least 3.0, and seems to be exactly for this purpose.