Removes usage of cmake IF(IN_LIST), for some env this gives problems.#251
Removes usage of cmake IF(IN_LIST), for some env this gives problems.#251
Conversation
Codecov Report
@@ Coverage Diff @@
## master #251 +/- ##
==========================================
+ Coverage 67.82% 67.84% +0.01%
==========================================
Files 127 127
Lines 26375 26375
==========================================
+ Hits 17890 17894 +4
+ Misses 8485 8481 -4
Continue to review full report at Codecov.
|
|
I'm going to object this one. Not sure what the issue is, some details might convinced me otherwise. |
Tested with cmake 3.4 and 3.12 and in both cases the cmake policy CMP0057 has te be set (I expect to NEW) or the build fails. Normally not a big issues, just set the policy in Celix. |
3.12 has been release in november 2018, I don't see a big problem here. If it was less then a year ago, perhaps, but not now. |
Note sure why building celix has no issue there, but reading the cmake help: |
Wow, I did not expect that, in that case I don't have a huge argument I guess.. |
Technically I think we can, but I think you should not set a cmake policy for a user. Although in this case a stretch, an end user project can depend on the OLD policy and explicitly set it. |
The construction if (.. IN_LIST ..) is giving some problems with some version of CMake (If I am correct 3.4 and 3.11).
For that reason this PR replace the usage of IN_LIST with a different approach.