Skip to content

Commit

Permalink
[cmake] Do not find boost if we already have it due to add_subdirecto…
Browse files Browse the repository at this point in the history
…ry inclusion
  • Loading branch information
jcelerier committed Nov 10, 2024
1 parent 9bdde0e commit 7f17b09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ option(PUARA_GESTURES_ENABLE_STANDALONE "Enable building and running Puara stand
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
find_package(Boost REQUIRED)
if(NOT TARGET Boost::headers)
find_package(Boost REQUIRED)
endif()

### Main library ###
add_library(puara_gestures
Expand Down

0 comments on commit 7f17b09

Please sign in to comment.