CMakeLists.txt: Fix CMAKE_MODULE_PATH related issue.
authorUwe Hermann <uwe@hermann-uwe.de>
Sat, 8 Nov 2014 14:31:30 +0000 (15:31 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 8 Nov 2014 14:38:17 +0000 (15:38 +0100)
commitcf2b5b643b53f7f601420a32a032307307fa4bb2
treec237b22ed8d20b838aae3ce87a42edfdeb992c0b
parentff30bdbafa900626fdcdf5e282d6eb56e4d4b68a
CMakeLists.txt: Fix CMAKE_MODULE_PATH related issue.

Append to CMAKE_MODULE_PATH instead of overwriting it, in case it is
non-empty initially (which can happen e.g. if -DCMAKE_TOOLCHAIN_FILE is
used and the specified toolchain file sets CMAKE_MODULE_PATH).

Also, append to CMAKE_MODULE_PATH _after_ running "project(pulseview)",
since the latter would apparently reset CMAKE_MODULE_PATH again.

This should fix a MinGW-w64 build issue we're currently seeing:

  CMake Error at CMakeLists.txt:105 (include):
    include could not find load file:

      memaccess
CMakeLists.txt