2 ms·
I think it’s recommended to avoid set(...) in modern/best practice cmake because it’s global. Use the target_* functions.
by ddavis 8y ago
I think it’s recommended to avoid set(...) in modern/best practice cmake because it’s global. Use the target_* functions.
- therealjumbo 8y agoThe author does discuss this in a footnote: https://codingnest.com/basic-cmake/#fn4 https://codingnest.com/basic-cmake/#fn4 In this case, I think I agree. Otherwise ya, try to avoid set. Except for CACHE variables, I think.