Skip to content

Commit

Permalink
Define the iDynTreeBindings project only if IDYNTREE_BINDINGS_BUILD_S…
Browse files Browse the repository at this point in the history
…TANDALONE is ON
  • Loading branch information
GiulioRomualdi committed Nov 25, 2021
1 parent 6a0db62 commit 0b3b349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.16)
project(iDynTreeBindings)

# Detect if we are doing a standalone build of the bindings, using an external iDynTree
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
Expand All @@ -9,6 +8,7 @@ else()
endif()

if(IDYNTREE_BINDINGS_BUILD_STANDALONE)
project(iDynTreeBindings)
# Add CMake helpers
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../cmake)
find_package(iDynTree REQUIRED)
Expand Down

0 comments on commit 0b3b349

Please sign in to comment.