diff --git a/bytecode_optimizer/CMakeLists.txt b/bytecode_optimizer/CMakeLists.txt index 0dc92c095127db348ed4e44756bca21bd8d23ff9..00b164cef3562ba2bbdaf0d5e3070f901da8a70e 100644 --- a/bytecode_optimizer/CMakeLists.txt +++ b/bytecode_optimizer/CMakeLists.txt @@ -24,8 +24,8 @@ panda_isa_gen( DESTINATION ${GENERATED_DIR} ) -add_dependencies(arkbytecodeopt isa_gen_${PROJECT_NAME}) +add_dependencies(arkbytecodeopt_obj isa_gen_${PROJECT_NAME}) -target_include_directories(arkbytecodeopt PUBLIC +target_include_directories(arkbytecodeopt_obj PUBLIC ${GENERATED_DIR} ) diff --git a/tests/bytecode_optimizer/CMakeLists.txt b/tests/bytecode_optimizer/CMakeLists.txt index 2ccbb48a9e674d80a54ce6b9f6338e6bc1c05dff..97356c5b66c11319ea03a06421291598fae33d63 100644 --- a/tests/bytecode_optimizer/CMakeLists.txt +++ b/tests/bytecode_optimizer/CMakeLists.txt @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -set(PANDA_BYTECODE_OPT_TESTS_ECMA_LIBRARIES arkbytecodeopt arkfile arkbase) +set(PANDA_BYTECODE_OPT_TESTS_ECMA_LIBRARIES arkbytecodeopt_static arkfile arkbase) if (NOT (PANDA_TARGET_MOBILE OR PANDA_TARGET_OHOS OR PANDA_ENABLE_FUZZBENCH)) list(APPEND PANDA_BYTECODE_OPT_TESTS_ECMA_LIBRARIES stdc++fs) endif()