[Insight-users] fltk + cmake + itk

Julien Jomier julien.jomier at kitware.com
Fri Aug 11 12:04:24 EDT 2006


Hi Dean,

Don't worry about this warning.
If you really want to get rid of it you can add this in your 
CMakesLists.txt file:

# Disable MSVC 8 warnings
IF(WIN32)
   ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
ENDIF(WIN32)

Julien

Dean Inglis wrote:
> thanks, that was almost too easy!
> 
> I am using (and am farily new to) the MS VSExpress free compiler/IDE
> and configuring cmake for nmake makefiles builds
> so that I can build from the command line.  There
> are a lot of C4996 warnings of the flavor:
> 
> e:\Developer\Sources\InsightApplications\LevelSetSegmentation\
> itk2DThresholdSegmentationLevelSetImageFilter.cxx(36) :
> warning C4996: 'sscanf' was declared deprecated
> c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(311) :
> see declaration of 'sscanf'
> Message: 'This function or variable may be unsafe. Consider 
> using sscanf_s instead.  To disable deprecation, use
> _CRT_SECURE_NO_DEPRECATE.  See online help for details.'
> 
> Should this warning be disabled?
> fltk-1.1 and InsightApplications are building successfully though. 
> 
> Dean
> 
> -----Original Message-----
> From: Julien Jomier [mailto:julien.jomier at kitware.com]
> Sent: Friday, August 11, 2006 10:59 AM
> To: Dean Inglis
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] fltk + cmake + itk
> 
> 
> Hi Dean,
> 
> FLTK 1.1.x comes with CMake configuration.
> So you can just download the current fltk 1.1 release from the FLTK 
> website (www.fltk.org) and run CMake on it and it should work.
> 
> Julien
> 
> Dean Inglis wrote:
>> I am interested in building InsightApplications.
>> I see from the kitware dashboards list
>> that there is a nightly dashboard for fltk and
>> so is there a cmake configuration for it?
>> If yes, how/where can I check out the correct fltk branch
>> and how do I obtain the cmake configuration files for it?
>>
>> Dean
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 



More information about the Insight-users mailing list