Commit e767725 1 parent 4a29ac2 commit e767725 Copy full SHA for e767725
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 29
29
#
30
30
# NodeJS_CMAKE_DEBUG - Print paths for debugging
31
31
# NodeJS_EXECUTABLE_ONLY - Find only NodeJS executable (avoid library and include files)
32
+ # NodeJS_SHARED_UV - If it is enabled, libuv won't be required by this script
33
+ # NodeJS_BUILD_FROM_SOURCE - If it is enabled, NodeJS runtime library will be built from source
34
+ # NodeJS_INSTALL_PREFIX - Define a custom install prefix for NodeJS (Linux / Darwin only)
32
35
33
36
# Prevent vervosity if already included
34
37
if (NodeJS_EXECUTABLE)
@@ -474,7 +477,13 @@ if(NOT NodeJS_LIBRARY)
474
477
set (ICU_ENV_VAR)
475
478
endif ()
476
479
477
- execute_process (COMMAND ${ICU_ENV_VAR} sh -c "./configure --with-icu-source=${ICU_URL} --shared ${ICU_DEBUG} " WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH} " )
480
+ if (NodeJS_INSTALL_PREFIX)
481
+ set (NodeJS_PREFIX "--prefix=${NodeJS_INSTALL_PREFIX} " )
482
+ else ()
483
+ set (NodeJS_PREFIX)
484
+ endif ()
485
+
486
+ execute_process (COMMAND ${ICU_ENV_VAR} sh -c "./configure ${NodeJS_PREFIX} --with-icu-source=${ICU_URL} --shared ${ICU_DEBUG} " WORKING_DIRECTORY "${NodeJS_OUTPUT_PATH} " )
478
487
479
488
message (STATUS "Build NodeJS shared library" )
480
489
You can’t perform that action at this time.
0 commit comments