Skip to content

Commit 94ac689

Browse files
committed
cmake lint
1 parent 5041b18 commit 94ac689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ add_test(NAME C_Fortran_error
3737
add_executable(c_fortran_struct c/struct_main.c)
3838
target_link_libraries(c_fortran_struct PRIVATE struct_fortran)
3939
set_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
4343
add_executable(cxx_call_fortran cxx/math_main.cxx)
@@ -56,7 +56,7 @@ add_executable(cxx_fortran_struct cxx/struct_main.cxx)
5656
target_include_directories(cxx_fortran_struct PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/c)
5757
target_link_libraries(cxx_fortran_struct PRIVATE struct_fortran)
5858
set_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
6262
set_tests_properties(

0 commit comments

Comments
 (0)