Fix setting PAX options for crossgen (#13950)
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 13 Sep 2017 21:33:55 +0000 (23:33 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2017 21:33:55 +0000 (23:33 +0200)
commit9fc84cfb5feafe7846307d76df2b9f85455b481a
treee8efa8953966ad40b53ae439f894ff06c169c799
parente866d072042f4ad9e0811aa36e338dac781c09a5
Fix setting PAX options for crossgen (#13950)

In my previous PR that added marking executables with paxctl, I've made
a mistake in the order of calling _add_library and add_dependencies.
But that was hidden due to the fact that we have yet another copy of the
add_library_clr and add_executable_clr functions in src/CMakeLists.txt.
I have no idea how that happened.
This one has overriden the other, which has hidden the problem, but also
caused the crossgen to not to be modified by the paxctl.
So I am fixing the order and removing the extra definitions of those
functions.
functions.cmake
src/CMakeLists.txt