JeffersonLab / analyzer

HallA C++ Analyzer
BSD 3-Clause "New" or "Revised" License
7 stars 54 forks source link

Cmake issues... again #169

Closed whit2333 closed 6 years ago

whit2333 commented 6 years ago

https://github.com/JeffersonLab/analyzer/blob/83ee64e5a049289eedf428a323d22d12b58fb3f8/CMakeLists.txt#L12

CMake works best when things are explicit. For any build logic you should use generator expressions exactly where they are needed.
https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html