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 )
122
122
project ( jf_test NONE )
123
123
124
124
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 8.2.5 REQUIRED )
125
- include_directories ( "${jsonfortran_INCLUDE_DIRS}" )
126
125
127
126
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )
128
127
foreach ( UNIT_TEST ${JF_TEST_SRCS} )
129
128
get_filename_component ( TEST ${UNIT_TEST} NAME_WE )
130
129
add_executable ( ${TEST} ${UNIT_TEST} )
131
- target_link_libraries ( ${TEST} jsonfortran-static )
130
+ target_link_libraries ( ${TEST} jsonfortran::jsonfortran -static )
132
131
# or for linking against the dynamic/shared library:
133
- # target_link_libraries ( ${TEST} jsonfortran ) # instead
132
+ # target_link_libraries ( ${TEST} jsonfortran::jsonfortran ) # instead
134
133
endforeach()
135
134
```
136
135
You can’t perform that action at this time.
0 commit comments