From eac57dd9ba3304537be7d215d1375fb57a80c1c0 Mon Sep 17 00:00:00 2001 From: "PC-202108251334\\dogeFu" <609075410@qq.com> Date: Wed, 26 Jan 2022 17:21:52 +0800 Subject: [PATCH] refactor v8 config for cc_editor --- win64/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/win64/CMakeLists.txt b/win64/CMakeLists.txt index 317075bb..65753dcd 100644 --- a/win64/CMakeLists.txt +++ b/win64/CMakeLists.txt @@ -166,8 +166,9 @@ set_target_properties(tcmalloc PROPERTIES set(se_libs_name) -if(USE_SE_V8) - +if(CC_EDITOR) + message(VERBOSE "CC_EDITOR USE V8 FROM NODEJS") +elseif(USE_SE_V8) add_library(v8 SHARED IMPORTED GLOBAL) set_target_properties(v8 PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/v8.dll @@ -195,7 +196,7 @@ if(USE_SE_V8) set(se_libs_name v8) else() - message(FATAL_ERROR "Only V8 is supported!") + message(FATAL_ERROR "Only V8 is supported!") endif() ############################# glslang #############################