Skip to content

Commit e0e81fc

Browse files
authored
Update usage instructions in README
1 parent d8dc940 commit e0e81fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,14 @@ enable_language ( Fortran )
122122
project ( jf_test NONE )
123123
124124
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.2.5 REQUIRED )
125-
include_directories ( "${jsonfortran_INCLUDE_DIRS}" )
126125
127126
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )
128127
foreach ( 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
134133
endforeach()
135134
```
136135

0 commit comments

Comments
 (0)