FLTK logo

[fltk.coredev] CMake build problem

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

CMake build problem Rob McDonald Sep 16, 2022  
  I tried building the tip of master today (166a5bf785). I use CMake to build. I got the following error...

-- Looking for POSIX compatible scandir
-- POSIX compatible scandir - found
-- Found Doxygen: /opt/homebrew/bin/doxygen (found version "1.9.5") found components: doxygen dot
-- Found LATEX: /Library/TeX/texbin/latex
fatal: not a git repository (or any of the parent directories): .git
CMake Error at documentation/CMakeLists.txt:52 (string):
string sub-command REPLACE requires at least four arguments.


As you know, CMake does out-of-tree builds.  Many people are set up like this...

project/.git       # Git repository with source files, etc.
project/build    # Build directory

In this situation, the build directory is still in the hierarchy of the git repository.  The object files are not dumped in the same place as the source files, but it really isn't out of tree.  Instead, I set up like this....

project/repo/.git       # Git repository with source files, etc.
project/build             # Build directory

Consequently, my CMAKE_BINARY_DIR is never descended from the git repository.  My build is truly 'out of tree'.

I think this difference in setup may be leading to the error I'm seeing.

I think the CMake scripts should be robust to either approach as they are both common practice.

Rob







--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/26569120-5529-4c05-90fd-d759619f7000n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.