oatpp / example-postgresql

A complete example of a "CRUD" service (UserService) built with Oat++ and using oatpp ORM with PostgreSQL.
https://oatpp.io/
Apache License 2.0
38 stars 18 forks source link

oatpp-swagger not installing while building the docker image #6

Open kryptoblack opened 1 year ago

kryptoblack commented 1 year ago

I am trying to install and run the application but I am unable to because oatpp-swagger isn't found.

Which is caused because the cmake for oatpp-swagger module is failing.

############################################################################
## oatpp-swagger module. Resolving dependencies...

############################################################################

CMake Error at CMakeLists.txt:103 (add_compile_definitions):
  Unknown CMake command "add_compile_definitions".

Opened /bin/ash from the container to find the cmake version to be 3.11.1.

cmake version 3.11.1

According to this the cmake version needs to be >=3.12 to use _"add_compiledefinitions"

The docker image needs to be upgraded with a higher version of cmake. That should solve this issue.

kryptoblack commented 1 year ago

There is a PR raised that can solve this (https://github.com/oatpp/oatpp-swagger/pull/66) without changing the version of cmake. Could we work on this I am tired of doing it manually.

lganzzzo commented 1 year ago

Hello @KryptoBlack , This issue should be fixed now. Please use the latest master of oatpp-swagger