File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ add_test(NAME C_Fortran_error
3737add_executable (c_fortran_struct c/struct_main.c)
3838target_link_libraries (c_fortran_struct PRIVATE struct_fortran)
3939set_target_properties (c_fortran_struct PROPERTIES LINKER_LANGUAGE C)
40- add_test (NAME C_Fortran_struct COMMAND $<TARGET_FILE: c_fortran_struct> )
40+ add_test (NAME C_Fortran_struct COMMAND c_fortran_struct)
4141
4242# -- C++ calling Fortran
4343add_executable (cxx_call_fortran cxx/math_main.cxx)
@@ -56,7 +56,7 @@ add_executable(cxx_fortran_struct cxx/struct_main.cxx)
5656target_include_directories (cxx_fortran_struct PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /c)
5757target_link_libraries (cxx_fortran_struct PRIVATE struct_fortran)
5858set_target_properties (cxx_fortran_struct PROPERTIES LINKER_LANGUAGE CXX)
59- add_test (NAME C++_Fortran_struct COMMAND $<TARGET_FILE: cxx_fortran_struct> )
59+ add_test (NAME C++_Fortran_struct COMMAND cxx_fortran_struct)
6060
6161# -- test wrapup
6262set_tests_properties (
You can’t perform that action at this time.
0 commit comments