Make ECM language-independent again, but make the tests use C

Review Request #118498 - Created June 3, 2014 and submitted

Information
Alex Merry
extra-cmake-modules
master
Reviewers
buildsystem, extracmakemodules, kdeframeworks
cgiboudeaux, nalvarez, winterz
Provide an option to exclude the tests

While the tests in ECM are not "built" as such (at least, not until they
are run), disabling the tests might be desirable to avoid the compiler
checks and to make the whole build process architecture-independent.

Make ECM language-independent again, but make the tests use C

Setting the language for ECM's project() call to C had unanticipated
side-effects - notably that the installed version file required the
architecture to match the one used at build time.

Instead, we make the tests a sub-project, setting up C as the language
there (since most of the tests do use C, albeit slightly indirectly).
Configures properly, tests pass. Visually inspected ECMConfigVersion.cmake file to see that it will return before the architecture check.
Alex Merry
Kevin Ottens
Commit Hook
This review has been submitted with commit 3afc8f9875979e57cce97edd68a5971d6771e097 by Alex Merry to branch master.
Commit Hook
This review has been submitted with commit bd22dc73a6da58dea8b709ef27f4c11eb598f42c by Alex Merry to branch master.
Alex Merry
Review request changed

Status: Closed (submitted)

Alex Merry
Review request changed

Status: Closed (submitted)

Loading...