We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a58a998 commit 35de058Copy full SHA for 35de058
cmake/FindPackages.cmake
@@ -7,6 +7,8 @@ function(_find_boost required_component)
7
option(Boost_USE_STATIC_RUNTIME "Boost uses static runtime" OFF)
8
9
set(BOOST_ROOT "" CACHE PATH "Hint for finding boost root directory")
10
+
11
+ find_package(Boost REQUIRED)
12
endif()
13
14
set(missed_component "")
@@ -19,12 +21,10 @@ function(_find_boost required_component)
19
21
if(missed_component)
20
22
find_package(Boost REQUIRED ${missed_component})
23
-
- if(NOT TARGET Boost::boost)
24
- find_package(Boost REQUIRED)
25
- endif()
26
endfunction()
27
+_find_boost("")
28
# find panda3d
29
set(panda3d_ROOT "" CACHE PATH "Hint for finding panda3d root directory")
30
find_package(panda3d REQUIRED p3framework p3direct)
0 commit comments