<div dir="ltr"><div>Hi Thomas,<br></div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
According to the documentation CMAKE_SIZEOF_VOID_P it is determined by running the compiler. However it seems that it is not using pertinent flags from the configuration, in particular CMAKE_C_FLAGS and CMAKE_CXX_FLAGS.<br></blockquote><div><br>It is but the results from type size checking get saved in cache variables so when run a second time, even though specifying extra CMAKE_CXX_FLAGS, the CMAKE_SIZEOF_VOID_P variable already exists in cache so it's not checked again.  If 
you clear your build directory before each invocation of CMake then you 
should see it switch between 4 and 8 as expected.<br><br clear="all">----------<br>Chuck Atkins<br>Staff R&D Engineer, Scientific Computing<br>Kitware, Inc.<br> <br></div></div><br></div></div>