The package fails to compile if I set this option.
In comparison setting the with_ssl works as expected.
[ 50%] Building CXX object src/C++/CMakeFiles/quickfix.dir/PostgreSQLStore.cpp.o
In file included from /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLLog.h:36,
from /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLLog.cpp:28:
/local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLConnection.h:35:10: fatal error: libpq-fe.h: No such file or directory
35 | #include <libpq-fe.h>
| ^~~~~~~~~~~~
compilation terminated.
gmake[4]: *** [src/C++/CMakeFiles/quickfix.dir/build.make:426: src/C++/CMakeFiles/quickfix.dir/PostgreSQLLog.cpp.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
I can see that the package correctly adds the dependency to the libpq in the conanfile, and the XX_tools.cmake is correctly generatd. However this isn't referred to anywhere in the CMakeLists.txt and as such it fails to include the package in the build.
def config_options(self):
self.options["quickfix"].with_ssl = True # => works
self.options["quickfix"].with_postgres = True # => doesn't work
...
def requirements(self):
self.requires("quickfix/1.15.1")
Logs
Click to expand log
```
[ 50%] Building CXX object src/C++/CMakeFiles/quickfix.dir/PostgreSQLStore.cpp.o
In file included from /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLLog.h:36,
from /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLLog.cpp:28:
/local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLConnection.h:35:10: fatal error: libpq-fe.h: No such file or directory
35 | #include
| ^~~~~~~~~~~~
compilation terminated.
gmake[4]: *** [src/C++/CMakeFiles/quickfix.dir/build.make:426: src/C++/CMakeFiles/quickfix.dir/PostgreSQLLog.cpp.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
```
Description
The package fails to compile if I set this option. In comparison setting the
with_ssl
works as expected.I can see that the package correctly adds the dependency to the libpq in the conanfile, and the XX_tools.cmake is correctly generatd. However this isn't referred to anywhere in the CMakeLists.txt and as such it fails to include the package in the build.
Package and Environment Details
Conan profile
Steps to reproduce
Or by adding this to conanfile.py
Logs
Click to expand log
``` [ 50%] Building CXX object src/C++/CMakeFiles/quickfix.dir/PostgreSQLStore.cpp.o In file included from /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLLog.h:36, from /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLLog.cpp:28: /local/erkan/.conan2/p/b/quickb5cca654be59e/b/src/src/C++/PostgreSQLConnection.h:35:10: fatal error: libpq-fe.h: No such file or directory 35 | #include