Skip to content

Commit 35de058

Browse files
committed
Fix finding boost
1 parent a58a998 commit 35de058

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmake/FindPackages.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ function(_find_boost required_component)
77
option(Boost_USE_STATIC_RUNTIME "Boost uses static runtime" OFF)
88

99
set(BOOST_ROOT "" CACHE PATH "Hint for finding boost root directory")
10+
11+
find_package(Boost REQUIRED)
1012
endif()
1113

1214
set(missed_component "")
@@ -19,12 +21,10 @@ function(_find_boost required_component)
1921
if(missed_component)
2022
find_package(Boost REQUIRED ${missed_component})
2123
endif()
22-
23-
if(NOT TARGET Boost::boost)
24-
find_package(Boost REQUIRED)
25-
endif()
2624
endfunction()
2725

26+
_find_boost("")
27+
2828
# find panda3d
2929
set(panda3d_ROOT "" CACHE PATH "Hint for finding panda3d root directory")
3030
find_package(panda3d REQUIRED p3framework p3direct)

0 commit comments

Comments
 (0)