MySQL Forums
Forum List  »  Connector/C++

shared library installation location
Posted by: Ephraim Stevens
Date: July 11, 2018 05:51AM

Greetings,

When installing the mysql connector, I provide the following flag to CMAKE:

-DCMAKE_INSTALL_PREFIX=/home/estevens

After performing the:

cmake --build . --target install step, the mysql connector header files are installed under the /home/estevens/include as expected. However the shared library file (libmysqlcppconn8.so.1.8.0.11) and it's revelant softlinks (libmysqlcppconn8.so and libmysqlcppconn8.so.1) get installed directly under the build directory I use for compiling the software. These files never get deployed to /home/estevens/lib64, or /home/estevens/lib as conventionally expected.


Is there an additional cmake flag I can provide to force this behavior, or must I copy over the shraed library files manually after they are compiled. Normally, -DCMAKE_INSTALL_PREFIX is sufficient. But it appears not to be in this case.

Thank you.

Options: ReplyQuote


Subject
Views
Written By
Posted
shared library installation location
1890
July 11, 2018 05:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.