Re: [CMake] Error detecting sun studio compiler under linux

2006-10-24 Thread Bill Hoffman
Doug Henry wrote: Looks like I may have missed a couple options (-R and -KPIC). As far as I can tell, the compiler should work exactly like the already supported SunOS version of the compiler. Just copy the options from the already included SunOS.cmake file, which are almost the same as the

Re: [CMake] CPack - installing non .exe and question on some variables

2006-10-24 Thread David Cole
Try something like this: IF(WIN32) SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS " CreateShortCut \\\"$SMPROGRAMS$STARTMENU_FOLDERBatch File.lnk\\\" \\\"$INSTDIRMyBatchFile.bat\\\" CreateShortCut \\\"$SMPROGRAMS$STARTMENU_FOLDERProject ReadMe.lnk\\\" \\\"$INSTDIRREADME.html\\\"

[CMake] Strange options for Sun Studio compiler

2006-10-24 Thread Doug Henry
I noticed that the default options for build mode may be a bit strange for sun compilers.  The release mode uses -xO2 and the minimum size mode uses -xO3 (higher optimization level?).  There seems to be an option -xspace which reads: -xspace   Do not do optimizations that increase code

Re: [CMake] Error detecting sun studio compiler under linux

2006-10-24 Thread Doug Henry
Looks like I may have missed a couple options (-R and -KPIC).  As far as I can tell, the compiler should work exactly like the already supported SunOS version of the compiler.  Just copy the options from the already included SunOS.cmake file, which are almost the same as the file I sent you.On 10/

Re: [CMake] Error detecting sun studio compiler under linux

2006-10-24 Thread Doug Henry
I made the file suggested (attached) and it seems to work.  I will test it in a larger project over the next few days and report if any additional changes need to be made.  I would like to caveat this fix with the warning that I know very little about the sun compilers, but my "grep and hack" strat

Re: [CMake] Semi-related question

2006-10-24 Thread Filipe Sousa
Filipe Sousa wrote: > Jonathan Hansen wrote: >> This more of a compiler question but I figured since people here are make >> folks you might know and save me signing up for another list... >> >> Is there a way in GCC to eliminate an include directory from warnings? >> >> Example: >> >> gcc -Wall -I

Re: [CMake] Semi-related question

2006-10-24 Thread Filipe Sousa
Jonathan Hansen wrote: > This more of a compiler question but I figured since people here are make > folks you might know and save me signing up for another list... > > Is there a way in GCC to eliminate an include directory from warnings? > > Example: > > gcc -Wall -I/tmp/messycode foo.cpp foo.