Open fishnet37222 opened 4 years ago
In https://github.com/pocoproject/poco/blob/f810bd0b4129b2330e4a23ccf4d304be6ba36583/Data/MySQL/cmake/PocoDataMySQLConfig.cmake#L2 it should be add:
find_dependency(MySQL)
But cmake doesn't provide a FindMySQL.cmake
, so poco should installd it. But what happens when there is a FindMySQL.cmake
installed from the MySQL project ....
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 60 days since being marked as stale.
find your Poco sources dir,it has a dir named cmake,copy FindMySQL.cmake to /usr/share/cmake-
When using the following CMakeLists.txt file, CMake gives the error shown below.
CMakeLists.txt:
CMake error message:
I am able to work around the issue by modifying the PocoDataMySQLTargets.cmake file so the block starting at line 53 appears as follows: