From 523f8d38a9d8eb1f7ea45c491e7332da40b48b98 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 2 Feb 2022 20:17:41 -0500 Subject: Fix examples including binaryninjaapi twice on internal builds --- examples/workflows/inliner/CMakeLists.txt | 2 +- examples/workflows/objectivec/CMakeLists.txt | 2 +- examples/workflows/tailcall/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/workflows') diff --git a/examples/workflows/inliner/CMakeLists.txt b/examples/workflows/inliner/CMakeLists.txt index 0a271d4b..417b9458 100644 --- a/examples/workflows/inliner/CMakeLists.txt +++ b/examples/workflows/inliner/CMakeLists.txt @@ -9,7 +9,7 @@ file(GLOB SOURCES add_library(workflow_inliner SHARED ${SOURCES}) -if(NOT BN_API_BUILD_EXAMPLES) +if(NOT BN_API_BUILD_EXAMPLES AND NOT BN_INTERNAL_BUILD) # Out-of-tree build find_path( BN_API_DIR diff --git a/examples/workflows/objectivec/CMakeLists.txt b/examples/workflows/objectivec/CMakeLists.txt index a4c0198a..2dc554b4 100644 --- a/examples/workflows/objectivec/CMakeLists.txt +++ b/examples/workflows/objectivec/CMakeLists.txt @@ -9,7 +9,7 @@ file(GLOB SOURCES add_library(workflow_objectivec SHARED ${SOURCES}) -if(NOT BN_API_BUILD_EXAMPLES) +if(NOT BN_API_BUILD_EXAMPLES AND NOT BN_INTERNAL_BUILD) # Out-of-tree build find_path( BN_API_DIR diff --git a/examples/workflows/tailcall/CMakeLists.txt b/examples/workflows/tailcall/CMakeLists.txt index 6d7e5eb0..f02052b6 100644 --- a/examples/workflows/tailcall/CMakeLists.txt +++ b/examples/workflows/tailcall/CMakeLists.txt @@ -9,7 +9,7 @@ file(GLOB SOURCES add_library(workflow_tailcall SHARED ${SOURCES}) -if(NOT BN_API_BUILD_EXAMPLES) +if(NOT BN_API_BUILD_EXAMPLES AND NOT BN_INTERNAL_BUILD) # Out-of-tree build find_path( BN_API_DIR -- cgit v1.3.1