Re: [CMake] Overloading/shadowing/redefining CMake intrinsic commands

2018-04-04 Thread Zaak Beekman
Hi Robert, Thanks so much for the speedy response. That is certainly dangerous looking. I'm sure everyone will want to buy me a beer/coffee after I crash their machines during configuration. I almost wish you had responded "impossible" because now I have the temptation of trying it out! Thanks, Z

Re: [CMake] Overloading/shadowing/redefining CMake intrinsic commands

2018-04-04 Thread Robert Maynard
See https://cmake.org/pipermail/cmake/2011-March/043320.html for a discussion on overloading functions and the dangers that can occur. On Wed, Apr 4, 2018 at 11:38 AM, Zaak Beekman wrote: > I have been moving towards modern CMake where > includes/compiler-flags/libraries/etc. are using target pr

[CMake] Overloading/shadowing/redefining CMake intrinsic commands

2018-04-04 Thread Zaak Beekman
I have been moving towards modern CMake where includes/compiler-flags/libraries/etc. are using target properties and transitive usage requirements which has greatly simplified setting up Modern Fortran build systems. In addition, if you're going to vendor all/most of your package's dependencies and