This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem building with cmake under cygwin (need clang)


On 27/07/2016 09:51, Csaba Raduly wrote:
On Tue, Jul 26, 2016 at 6:06 PM, Marco Atzeri  wrote:

Csaba was clear but it seems you are misunderstanding,
the call to cmake is

       cmake [options] <path-to-source>

No, not <path-to-source> but <path-to-CMakeLists.txt>

For quickhull, CMakeLists.txt is in the root of the project, the
sources are under the src directory.

Csaba,
you are 100 %right.
I just copied the cmake help

$ cmake --help |head -n 4
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

where of course they consider CMakeLists.txt as part of the source
and placed in the tree root.

Regardless of where the build is performed, the path in the cmake
invocation must point to the root of the project. Copying
CMakeLists.txt into ./src and pointing cmake to ./src is unlikely to
work.

All of this is moot because the author of quickhull littered
CMakeLists.txt with clang-specific compiler switches. He made no
attempt to cater for the world's most widely used C++ compiler (GCC).

I agree on that. He made the life hard for anyone to build his software.


Csaba

Regards
Marco



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]