Re: [CMake] several questions about cmake

2010-08-27 Thread Mark Roden
23:10:09 +0200 From: Michael Hertling mhertl...@online.de Subject: Re: [CMake] several questions about cmake To: cmake@cmake.org Message-ID: 4c76d831.5080...@online.de Content-Type: text/plain; charset=ISO-8859-1 On 08/26/2010 05:38 PM, Mark Roden wrote: 2) I'm trying to check to see

Re: [CMake] several questions about cmake

2010-08-27 Thread Mark Roden
Hi Jed, I don't want portable code. I want the socket++ code that I originally got from someone else to compile as intended on the various platforms they support. They put a void as a return type; that void as a return type is compiling just fine on vs2008, which according to that page, is

Re: [CMake] several questions about cmake

2010-08-27 Thread Michael Wild
c++'98 standard (http://www.kuzbass.ru:8086/docs/isocpp/basic.html#basic.start.main) clearly states that main _MUST_ have int as it's return type. Further it shall be callable as int main(); int main(int argc, char* argv[]); The part that says but otherwise its type is implementation-defined

Re: [CMake] several questions about cmake

2010-08-27 Thread Jed Brown
On Fri, 27 Aug 2010 08:10:49 -0700, Mark Roden mmro...@gmail.com wrote: And it turns out that it is valid C++ to have void main() because it's valid C. Source: http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/legality-of-void-main.html You seem to have misread the link (which

Re: [CMake] several questions about cmake

2010-08-27 Thread Mark Roden
Sorry about breaking the back-thread, I only saw the response in the cmake digest and not from a particular response. I think that this code is suspicious anyway, for a number of reasons. They claim out-of-the-box windows compatibility, but I'm getting all sorts of other compilation errors that

Re: [CMake] several questions about cmake

2010-08-26 Thread Mike McQuaid
On 26 August 2010 01:34, Mark Roden mmro...@gmail.com wrote: I'm starting to get deep into CMake, and I have a few questions as I try to convert the socket++ library such that it can be compiled by CMake on Windows. 1) The default install directory on Windows is C:\Program Files, or

Re: [CMake] several questions about cmake

2010-08-26 Thread Michael Wild
On 26. Aug, 2010, at 1:34 , Mark Roden wrote: I'm starting to get deep into CMake, and I have a few questions as I try to convert the socket++ library such that it can be compiled by CMake on Windows. Cool! 1) The default install directory on Windows is C:\Program Files, or C:\Program

Re: [CMake] several questions about cmake

2010-08-26 Thread Hickel, Kelly
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Mike McQuaid Sent: Thursday, August 26, 2010 1:12 AM To: Mark Roden Cc: cmake@cmake.org Subject: Re: [CMake] several questions about cmake On 26 August 2010 01:34, Mark Roden mmro

Re: [CMake] several questions about cmake

2010-08-26 Thread Mark Roden
On Wed, Aug 25, 2010 at 11:17 PM, Michael Wild them...@gmail.com wrote: On 26. Aug, 2010, at 1:34 , Mark Roden wrote: I'm starting to get deep into CMake, and I have a few questions as I try to convert the socket++ library such that it can be compiled by CMake on Windows. Cool! Thanks, I

Re: [CMake] several questions about cmake

2010-08-26 Thread John Drescher
] several questions about cmake On 26 August 2010 01:34, Mark Roden mmro...@gmail.com wrote: I'm starting to get deep into CMake, and I have a few questions as I try to convert the socket++ library such that it can be compiled by CMake on Windows. 1) The default install directory on Windows

Re: [CMake] several questions about cmake

2010-08-26 Thread Clinton Stimpson
To: Mark Roden Cc: cmake@cmake.org Subject: Re: [CMake] several questions about cmake On 26 August 2010 01:34, Mark Rodenmmro...@gmail.com wrote: I'm starting to get deep into CMake, and I have a few questions as I try to convert the socket++ library such that it can be compiled by CMake

Re: [CMake] several questions about cmake

2010-08-26 Thread Knox, Kent
1) The default install directory on Windows is C:\Program Files, or C:\Program Files (x86) on 64 bit. ?This default will not work on Windows 7 (and perhaps Vista), because the user isn't running as administrator anymore, and only administrators can modify that directory. ?There should

Re: [CMake] several questions about cmake

2010-08-26 Thread Michael Hertling
On 08/26/2010 05:38 PM, Mark Roden wrote: 2) I'm trying to check to see if a certain C++ code chunk will compile. The line is: CHECK_CXX_SOURCE_COMPILES( #include string.h #include stdio.h void main(){ char buf[100]; char buf2[100]; strncpy(buf2, buf, 5); buf2[5] = '\0';

[CMake] several questions about cmake

2010-08-25 Thread Mark Roden
I'm starting to get deep into CMake, and I have a few questions as I try to convert the socket++ library such that it can be compiled by CMake on Windows. 1) The default install directory on Windows is C:\Program Files, or C:\Program Files (x86) on 64 bit. This default will not work on Windows 7