On Thu, Feb 23, 2012 at 10:39 AM, Hashim Mir <h...@rim.com> wrote:
> Hi,
>
>
> I am trying to control the flow of my program based on the value of a cmake
> variable called CMAKE_SIZEOF_VOID_P.
>
>
>
> To start off, I wanted to just see what value this variable took under
> multiple different configurations, by issuing the following command in my
> cmakelists.txt file:
>
>
>
> message(${CMAKE_SIZEOF_VOID_P})
>
>
>
> This works perfectly. However, whenever I try to run the above command on my
> *.cmake file, I get no value returned to me (it just throws an error).
>

Is there a PROJECT()

before you include your .cmake

John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to