mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
446beebd79
Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with contributions from Mark Constable (markc@renta.net) and Daniel Gröber (darklord@darkboxed.org).
16 lines
470 B
CMake
16 lines
470 B
CMake
set(V8_INCLUDE_NAMES v8.h v8-debug.h v8-profiler.h)
|
|
set(V8_LIBRARY_NAMES v8)
|
|
|
|
if(SHARED_V8)
|
|
find_path(V8_INCLUDE_DIR NAMES ${V8_INCLUDE_NAMES})
|
|
find_library(V8_LIBRARY_PATH NAMES ${V8_LIBRARY_NAMES} NO_CMAKE_PATH)
|
|
else()
|
|
set(V8_INCLUDE_DIR "${PROJECT_BINARY_DIR}/deps/v8/include")
|
|
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
|
|
set(v8_fn "libv8_g.a")
|
|
else()
|
|
set(v8_fn "libv8.a")
|
|
endif()
|
|
set(V8_LIBRARY_PATH "${PROJECT_BINARY_DIR}/deps/v8/${v8_fn}")
|
|
endif()
|