зеркало из https://github.com/microsoft/napajs.git
Find path to boost-lib cmake file
This commit is contained in:
Родитель
f458c8052d
Коммит
3ba6ad1f66
|
@ -15,9 +15,11 @@ set(Boost_USE_STATIC_RUNTIME OFF)
|
||||||
if (CMAKE_JS_VERSION)
|
if (CMAKE_JS_VERSION)
|
||||||
# Include BoostLib module
|
# Include BoostLib module
|
||||||
|
|
||||||
LIST(APPEND CMAKE_MODULE_PATH
|
execute_process(COMMAND npm config get prefix RESULT_VARIABLE ERR OUTPUT_VARIABLE NPM_GLOBAL_PATH)
|
||||||
"${PROJECT_SOURCE_DIR}/node_modules/boost-lib/cmake"
|
if(ERR)
|
||||||
"${PROJECT_SOURCE_DIR}/../boost-lib/cmake")
|
message(FATAL_ERROR "Failed to get npm global installation path.")
|
||||||
|
endif(ERR)
|
||||||
|
set(CMAKE_MODULE_PATH "${NPM_GLOBAL_PATH}/node_modules/boost-lib/cmake")
|
||||||
|
|
||||||
include(BoostLib)
|
include(BoostLib)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче