From 8e1e22ce0ea105cde6bd18a7519d3d1e2cb1578b Mon Sep 17 00:00:00 2001 From: wkp <609075410@qq.com> Date: Tue, 8 Feb 2022 11:10:23 +0800 Subject: [PATCH] refactor v8 config for cc_editor (#217) Co-authored-by: minggo --- win64/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/win64/CMakeLists.txt b/win64/CMakeLists.txt index 5c653014..0d585d9e 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 @@ -194,8 +195,8 @@ if(USE_SE_V8) ) set(se_libs_name v8) -elseif(NOT CC_EDITOR) - message(FATAL_ERROR "Only V8 is supported!") +else() + message(FATAL_ERROR "Only V8 is supported!") endif() ############################# glslang #############################