Skip to content

Commit 584ae6a

Browse files
committed
Fixes install prefix.
1 parent 1fdd623 commit 584ae6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/iotjs.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ endif()
568568
if(NOT BUILD_LIB_ONLY)
569569
set(TARGET_IOTJS iotjs)
570570
message(STATUS "CMAKE_BINARY_DIR ${CMAKE_BINARY_DIR}")
571+
if (NOT INSTALL_PREFIX)
572+
set(INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)
573+
endif()
571574
message(STATUS "BINARY_INSTALL_DIR ${INSTALL_PREFIX}/bin")
572575
message(STATUS "LIBRARY_INSTALL_DIR ${INSTALL_PREFIX}/lib")
573576

0 commit comments

Comments
 (0)