summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2018-04-06 14:56:44 -0400
committerpsychocrypt <psychocryptHPC@gmail.com>2018-04-17 21:50:05 +0200
commit4dc1e92bffdcf61fd18f653a32facf1d4f22d6d7 (patch)
treef9b1713529106e9f3802cd9f28e4abcffcc1ee8c
parent9df1d4d608f59e81e1e7db1f9b20dd2807e7dd6e (diff)
downloadxmr-stak-4dc1e92bffdcf61fd18f653a32facf1d4f22d6d7.zip
xmr-stak-4dc1e92bffdcf61fd18f653a32facf1d4f22d6d7.tar.gz
Use EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH
Use EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH to control the path to which the executable and libraries are installed.
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 15a2684..66c2f6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -535,23 +535,23 @@ target_link_libraries(xmr-stak ${LIBS} xmr-stak-c xmr-stak-backend)
# do not install the binary if the project and install are equal
if( NOT CMAKE_INSTALL_PREFIX STREQUAL PROJECT_BINARY_DIR )
install(TARGETS xmr-stak
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_OUTPUT_PATH}")
if(CUDA_FOUND)
if(WIN32)
install(TARGETS xmrstak_cuda_backend
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}")
else()
install(TARGETS xmrstak_cuda_backend
- LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+ LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}")
endif()
endif()
if(OpenCL_FOUND)
if(WIN32)
install(TARGETS xmrstak_opencl_backend
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}")
else()
install(TARGETS xmrstak_opencl_backend
- LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+ LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBRARY_OUTPUT_PATH}")
endif()
endif()
else()
OpenPOWER on IntegriCloud