FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.23k stars 213 forks source link

CMake on Linux broken #7152

Open AtjonTV opened 2 years ago

AtjonTV commented 2 years ago

Hey there! I have come across Firebird and I wanted to build it from source using CMake, sadly I cant.

When trying to build from tip-of-master I get the following error:

-- Configuring done
CMake Error at src/CMakeLists.txt:999 (add_executable):
  Cannot find source file:

    misc/makeHeader.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at src/CMakeLists.txt:138 (add_custom_target):
  Cannot find source file:

    /stmp/firebird/src/msgs/facilities2.sql

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at src/CMakeLists.txt:999 (add_executable):
  No SOURCES given to target: makeHeader

CMake Generate step failed.  Build files cannot be regenerated correctly.

The reason this error comes up is because the src/misc/makeHeader.cpp file was deleted in commit 45d5e3aa7aca2c8ee70157caed8e537d449ce58a.

It would be awesome if someone could fix the Unix/Linux CMake scripts.

AlexPeshkoff commented 2 years ago

On 3/14/22 21:51, AtjonTV wrote:

Hey there! I have come across Firebird and I wanted to build it from source using CMake, sadly I cant.

I get the following error:

|-- Configuring done CMake Error at src/CMakeLists.txt:999 (add_executable): Cannot find source file: misc/makeHeader.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc CMake Error at src/CMakeLists.txt:138 (add_custom_target): Cannot find source file: /stmp/firebird/src/msgs/facilities2.sql Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc CMake Error at src/CMakeLists.txt:999 (add_executable): No SOURCES given to target: makeHeader CMake Generate step failed. Build files cannot be regenerated correctly. |

The reason this error comes up is because the src/misc/makeHeader.cpp file was deleted in commit 45d5e3a https://github.com/FirebirdSQL/firebird/commit/45d5e3aa7aca2c8ee70157caed8e537d449ce58a.

It would be awesome if someone could fix the Unix/Linux CMake scripts.

cmake build was added by 3d-party people, we do not use it ourself if you can prepare patch fixing that build - you are welcome, I will be glad to commit it