Thank you, that did the trick. Now my other question is there a function in cmake that does abort the build/makefile generation process ? for example if i find out the system is not 64bit - is there something like quit() ?

On 18.02.19 17:04, wrote:

-------- Forwarded Message --------
Subject:        Re: [CMake] Question about CMAKE_MODULE_PATH
Date:   Mon, 18 Feb 2019 16:58:26 +0100
From: <>
To:     Kyle Edwards <>

here is my code:

set(MODULE_PATH "compile/tools/cmake/modules")


now i try to include with


and i get an error that the file can't be found when typing cmake ../ from within my build path.

On 18.02.19 16:54, Kyle Edwards wrote:
On Mon, 2019-02-18 at 16:50 +0100, wrote:
Doesn't the content of CMAKE_MODULE_PATH should also include the path
the default modules ??
The default modules are automatically checked by CMake, independently
of the contents of CMAKE_MODULE_PATH. They should not normally be

i try to load custom modules. i use

list(append CMAKE_MODULE_PATH "/mypathtomdoules")
The "append" argument should be uppercase:

list(APPEND CMAKE_MODULE_PATH "/mypathtomodules")

Did you receive any warnings about an invalid argument to list()?



Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe:

Reply via email to