Hi Thomas, 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. >
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. ---------- Chuck Atkins Staff R&D Engineer, Scientific Computing Kitware, Inc.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake