From 31ac99b6907c17facc1ae7fc2bf7a36313f00b4f Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Mon, 10 Dec 2018 16:19:21 +0100 Subject: [PATCH] Build with system jscore lib --- core/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index dc004b21f7..373ae3ca21 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -139,7 +139,9 @@ target_link_libraries(tangram-core # Add JavaScript implementation. if(TANGRAM_JSCORE_ENABLED) if (TANGRAM_USE_JSCORE_STATIC) - target_link_libraries(tangram-core PRIVATE jscore-static) + # target_link_libraries(tangram-core PRIVATE jscore-static) + pkg_check_modules(JSCORE REQUIRED IMPORTED_TARGET javascriptcoregtk-4.0) + target_link_libraries(tangram-core PRIVATE PkgConfig::JSCORE) else() target_link_libraries(tangram-core PRIVATE "-framework JavaScriptCore") endif()