File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,7 @@ endif()
74
74
75
75
find_package (MPI REQUIRED COMPONENTS Fortran)
76
76
find_package (FMS REQUIRED COMPONENTS R8)
77
- find_package (PkgConfig REQUIRED)
78
- pkg_check_modules(MOCSY REQUIRED IMPORTED_TARGET "mocsy" )
77
+ find_package (mocsy REQUIRED)
79
78
80
79
add_library (gtracers)
81
80
@@ -112,7 +111,7 @@ target_include_directories(gtracers
112
111
113
112
target_link_libraries (gtracers PUBLIC
114
113
FMS::fms_r8
115
- PkgConfig::MOCSY )
114
+ mocsy::mocsy )
116
115
117
116
install (TARGETS gtracers
118
117
EXPORT GFDLGTracersTargets)
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ set(_required_components ${GFDLGTracers_FIND_COMPONENTS})
13
13
14
14
find_dependency(MPI REQUIRED COMPONENTS Fortran)
15
15
find_dependency(fms COMPONENTS R8 REQUIRED)
16
- find_dependency(PkgConfig REQUIRED)
17
- pkg_check_modules(MOCSY REQUIRED IMPORTED_TARGET "mocsy" )
16
+ find_dependency(mocsy REQUIRED)
18
17
19
18
# Run the normal Targets.cmake
20
19
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} )
You can’t perform that action at this time.
0 commit comments