Skip to content

Commit

Permalink
CONFIG options is only needed if a FindXXX.cmake exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Sep 4, 2024
1 parent b5fc288 commit 4cf1f4b
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion BGL/examples/BGL_OpenMesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project(BGL_OpenMesh_Examples)
# CGAL and its components
find_package(CGAL REQUIRED)

find_package(OpenMesh CONFIG)
find_package(OpenMesh)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
create_single_source_cgal_program("TriMesh.cpp")
Expand Down
2 changes: 1 addition & 1 deletion BGL/examples/BGL_polyhedron_3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ create_single_source_cgal_program("range.cpp")
create_single_source_cgal_program("transform_iterator.cpp")
create_single_source_cgal_program("copy_polyhedron.cpp")

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
target_link_libraries(copy_polyhedron PRIVATE CGAL::OpenMesh_support)
Expand Down
2 changes: 1 addition & 1 deletion BGL/test/BGL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ create_single_source_cgal_program("bench_read_from_stream_vs_add_face_and_add_fa
create_single_source_cgal_program("graph_traits_inheritance.cpp" )
create_single_source_cgal_program("test_deprecated_io.cpp")

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)

Expand Down
2 changes: 1 addition & 1 deletion Combinatorial_map/test/Combinatorial_map/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cgal_add_compilation_test(Combinatorial_map_copy_test_index)
create_single_source_cgal_program(cmap_test_split_attribute.cpp)

# Link with OpenMesh if possible
find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
message(STATUS "Found OpenMesh")
include(CGAL_OpenMesh_support)
Expand Down
2 changes: 1 addition & 1 deletion Convex_hull_3/examples/Convex_hull_3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ create_single_source_cgal_program("quickhull_any_dim_3.cpp")
create_single_source_cgal_program("extreme_points_3_sm.cpp")
create_single_source_cgal_program("extreme_indices_3.cpp")

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include_directories(BEFORE "/usr/include/libxml2/")
# add_definitions("-g")

# OpenMesh
find_package(OpenMesh CONFIG REQUIRED)
find_package(OpenMesh REQUIRED)
include(CGAL_OpenMesh_support)

# Polyhedron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ else()
message(STATUS "NOTICE: Examples that use Eigen will not be compiled.")
endif()

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ else()
message(STATUS "NOTICE: Intel TBB was not found. Tests will use sequential code.")
endif()

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
create_single_source_cgal_program("remeshing_test_P_SM_OM.cpp")
Expand Down
2 changes: 1 addition & 1 deletion Property_map/test/Property_map/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ create_single_source_cgal_program("dynamic_properties_test.cpp")
create_single_source_cgal_program("kernel_converter_properties_test.cpp")
create_single_source_cgal_program("test_Property_container.cpp")

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
message(STATUS "Found OpenMesh")
include(CGAL_OpenMesh_support)
Expand Down
2 changes: 1 addition & 1 deletion STL_Extension/test/STL_Extension/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if(TARGET CGAL::TBB_support)
target_link_libraries(test_for_each PUBLIC CGAL::TBB_support)
endif()

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
message(STATUS "Found OpenMesh")
include(CGAL_OpenMesh_support)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(TARGET CGAL::Eigen3_support)
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
endforeach()

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(TARGET CGAL::Eigen3_support)
create_single_source_cgal_program("Symmetry_test.cpp")
target_link_libraries(Symmetry_test PUBLIC CGAL::Eigen3_support)

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ create_single_source_cgal_program("segmentation_from_sdf_values_SM_example.cpp")
create_single_source_cgal_program("segmentation_from_sdf_values_LCC_example.cpp")
create_single_source_cgal_program("extract_segmentation_into_mesh_example.cpp")

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ create_single_source_cgal_program("shortest_paths_with_id.cpp")
create_single_source_cgal_program("shortest_paths.cpp")
create_single_source_cgal_program("shortest_path_with_locate.cpp")

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else()
message(STATUS "NOTICE: Garland-Heckbert polices require the Eigen library, which has not been found; related examples will not be compiled.")
endif()

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(TARGET CGAL::Eigen3_support)
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
endforeach()

find_package(OpenMesh CONFIG QUIET)
find_package(OpenMesh QUIET)
if(OpenMesh_FOUND)
include(CGAL_OpenMesh_support)
message(STATUS "Found OpenMesh")
Expand Down

0 comments on commit 4cf1f4b

Please sign in to comment.