File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -122,15 +122,14 @@ enable_language ( Fortran )
122122project ( jf_test NONE )
123123
124124find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.2.5 REQUIRED )
125- include_directories ( "${jsonfortran_INCLUDE_DIRS}" )
126125
127126file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )
128127foreach ( UNIT_TEST ${JF_TEST_SRCS} )
129128 get_filename_component ( TEST ${UNIT_TEST} NAME_WE )
130129 add_executable ( ${TEST} ${UNIT_TEST} )
131- target_link_libraries ( ${TEST} jsonfortran-static )
130+ target_link_libraries ( ${TEST} jsonfortran::jsonfortran -static )
132131 # or for linking against the dynamic/shared library:
133- # target_link_libraries ( ${TEST} jsonfortran ) # instead
132+ # target_link_libraries ( ${TEST} jsonfortran::jsonfortran ) # instead
134133endforeach()
135134```
136135
You can’t perform that action at this time.
0 commit comments