diff options
Diffstat (limited to 'contrib/cmake/FindV8.cmake')
-rw-r--r-- | contrib/cmake/FindV8.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/cmake/FindV8.cmake b/contrib/cmake/FindV8.cmake index 4606e67..819bedd 100644 --- a/contrib/cmake/FindV8.cmake +++ b/contrib/cmake/FindV8.cmake @@ -18,6 +18,14 @@ if (V8_LIBRARY_BASE_RELEASE) list(APPEND V8_LIBRARY optimized ${V8_LIBRARY_BASE_RELEASE}) endif() +FIND_LIBRARY(V8_LIBRARY_SNAPSHOT_RELEASE + NAMES v8_snapshot + HINTS $ENV{V8_SRC}/out/native/ +) +if (V8_LIBRARY_SNAPSHOT_RELEASE) + list(APPEND V8_LIBRARY optimized ${V8_LIBRARY_SNAPSHOT_RELEASE}) +endif() + FIND_LIBRARY(V8_LIBRARY_BASE_DEBUG NAMES v8_base_d v8_d v8_base_g v8_g HINTS $ENV{V8_SRC}/out/native/ @@ -30,6 +38,18 @@ else() endif() endif() +FIND_LIBRARY(V8_LIBRARY_SNAPSHOT_DEBUG + NAMES v8_snapshot_d + HINTS $ENV{V8_SRC}/out/native/ +) +if (V8_LIBRARY_SNAPSHOT_DEBUG) + list(APPEND V8_LIBRARY debug ${V8_LIBRARY_SNAPSHOT_DEBUG}) +else() + if (UNIX AND V8_LIBRARY_SNAPSHOT_RELEASE) + list(APPEND V8_LIBRARY debug ${V8_LIBRARY_SNAPSHOT_RELEASE}) + endif() +endif() + INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(V8 DEFAULT_MSG V8_LIBRARY V8_INCLUDE_DIR) MARK_AS_ADVANCED(V8_LIBRARY V8_INCLUDE_DIR) |