File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ find_package(BLAS REQUIRED)
6565
6666if (BUILD_TESTING)
6767 find_package (PkgConfig REQUIRED)
68- pkg_check_modules(criterion REQUIRED criterion)
68+ pkg_check_modules(CRITERION REQUIRED IMPORTED_TARGET criterion)
6969 add_subdirectory (tests)
7070endif ()
7171
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if(BUILD_TESTING)
1818
1919 target_link_libraries (test_real_data ${MATH_LIBRARY} )
2020 target_link_libraries (test_real_data openblas)
21- target_link_libraries (test_real_data criterion )
21+ target_link_libraries (test_real_data PkgConfig::CRITERION )
2222
2323 target_link_libraries (test_real_data testing_utils)
2424
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if(BUILD_TESTING)
1414
1515 target_link_libraries (unit_test ${MATH_LIBRARY} )
1616 target_link_libraries (unit_test openblas)
17- target_link_libraries (unit_test criterion )
17+ target_link_libraries (unit_test PkgConfig::CRITERION )
1818
1919 target_link_libraries (unit_test testing_utils)
2020
@@ -37,7 +37,7 @@ if(BUILD_TESTING)
3737
3838 target_link_libraries (test_constructors_omp ${MATH_LIBRARY} )
3939 target_link_libraries (test_constructors_omp openblas)
40- target_link_libraries (test_constructors_omp criterion )
40+ target_link_libraries (test_constructors_omp PkgConfig::CRITERION )
4141 target_link_libraries (test_constructors_omp OpenMP::OpenMP_C)
4242
4343 target_link_libraries (test_constructors_omp testing_utils)
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ if(BUILD_TESTING)
66
77 target_link_libraries (testing_utils ${MATH_LIBRARY} )
88 target_link_libraries (testing_utils openblas)
9- target_link_libraries (testing_utils criterion )
9+ target_link_libraries (testing_utils PkgConfig::CRITERION )
1010endif ()
You can’t perform that action at this time.
0 commit comments