Skip to content

Commit 0187c07

Browse files
committed
Add CONFIG parameter to find_package
1 parent 2d52379 commit 0187c07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ endif()
3131
find_package(panda3d REQUIRED p3framework p3direct)
3232
find_package(Boost REQUIRED filesystem)
3333

34-
find_package(fmt REQUIRED)
34+
find_package(fmt CONFIG REQUIRED)
3535
if(TARGET fmt::fmt-header-only)
3636
set(FMT_TARGET fmt::fmt-header-only)
3737
else() # for ubuntu libfmt-dev package
3838
set(FMT_TARGET fmt::fmt)
3939
endif()
4040

41-
find_package(spdlog REQUIRED)
42-
find_package(yaml-cpp REQUIRED)
41+
find_package(spdlog CONFIG REQUIRED)
42+
find_package(yaml-cpp CONFIG REQUIRED)
4343

4444
# find freetype
4545
find_package(Freetype REQUIRED)

cmake/render_pipeline-macro.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function(render_pipeline_find_plugins plugin_id_list)
3030
endif()
3131

3232
foreach(plugin_id ${missed_plugin_id_list})
33-
find_package(rpplugin_${plugin_id} REQUIRED HINTS "${PLUGIN_DIR_HINT}/${plugin_id}")
33+
find_package(rpplugin_${plugin_id} CONFIG REQUIRED HINTS "${PLUGIN_DIR_HINT}/${plugin_id}")
3434
endforeach()
3535
endif()
3636

0 commit comments

Comments
 (0)