<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/122699>122699</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [llvm] CMake installscripts for OCAML-bindings don't use CMAKE_INSTALL_PREFIX
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jdumke
      </td>
    </tr>
</table>

<pre>
    Hi, there.
The cmake_install.cmake scripts for the OCAML-bindings just set CMAKE_INSTALL_PREFIX, but don't use it anywhere and try always to install to "/usr/" , which isn't suitable for user only setups. 

Example given:
[cmake_install.cmake.txt](https://github.com/user-attachments/files/18396399/cmake_install.cmake.txt)

The problem occures in line 54 where "/usr/" is hard coded instead of use "${CMAKE_INSTALL_PREFIX}",.

Greets. 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8UkFzmzwQ_TXismMGFjDWgYNjh-_LNGk7bQ69ZQQsRokAj1aK43_fEc5MMxm3J4F29d7bt08x68NEVIniRhT7SHk3zLZ67vz4QlEzd-fqfy1wB24gS7FIto8DQTuqF3rSEztlTLz8AbdWHx1DP9vQDN9224f7VaOnTk8HhmfPDpgc7B62X26f7r7-fNze3z99_3Fb3_0KBI130M2TwNKBZwLtQE3nU6AFNXXg7BmUOakzg5vhnTt8CkSBtWcrsBaIEMBOg24H0HyBY6-dagwt2jyThXky56DGHzkGkWxFsr19U-PREBz0K00iC1eiuLkyaezenCj2AjeDc0cOrYG4Pmg3-CZu53GRQ3alnFPtMNLkWGDda0PhTDeZXGdSCqz_ho7yoil4fbRzY2iEuW29JQY9gdETQZHDxZzP82uGQdkO2rmjbjGKVAdzv7i6NOeivLm6hnK_1Hfxhf4_S-Q4hqirsk5mUkVUpWW2Ltdyk5TRUBGqJENJEvtcZaoturIsC0r6XuVKdmmkK0ywSNI0SzHJcB1nSZNvMNs0hewLyqTIExqVNrExr2M820OkmT1VKeJaysiohgwv4USc6ARLNYgs9pGtwqNV4w8s8sRodvwHxmlnllSHG1HsYfcQUvru9cewfgrqxwxeMyny1lT_2PzCdzlWRzs_U-sE1ovuZfuXwV4r_B0AAP__r88diw">