[Insight-users] GlutMaster build err - a fix

Dean Inglis dean.inglis@on.aibn.com
Mon, 21 Oct 2002 12:05:37 -0400


Hi,

I found a fix modelled after VTK's build of
ftgl library: (VTK/Utilities/ftgl/CMakeLists.txt)

    IF (WIN32)
      # - Avoid the glutCreateMenu_ATEXIT_HACK pb.
      # - Sort-of a hack to avoid the bug in glut.h to avoid
      #   ambiguity between 'std::exit(int)' and 'std::exit(int)' in
function
      ADD_DEFINITIONS (-DGLUT_DISABLE_ATEXIT_HACK)
      ADD_DEFINITIONS (-DGLUT_BUILDING_LIB)
    ENDIF (WIN32)

if added to the Insight/Utilities/GlutMaster/CMakeLists.txt file,
this fixes the ambiguity with exit()...

Dean