Hey all,
This is probably an easy question but somehow I couldn't manage it to work..
I was testing the C++ WT library and I have a CMakeLists.txt file as below:
Code:
ADD_EXECUTABLE(heloooo.wt
hello.C
)
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_INSTALL_RPATH "/usr/local/lib")
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# for built-in httpd deployment:
TARGET_LINK_LIBRARIES(heloooo.wt
wthttp wt
)
INCLUDE_DIRECTORIES(/usr/local/include)
So I can build the file but always get the following when I try to run:
Code:
./heloooo.wt: error while loading shared libraries: libwthttp.so.22: cannot open shared object file: No such file or directory
What am i doing wrong, I don't want to use the LD_LIBRARY_PATH, but to get the executable find the library with rpath when run?