@@ -55,11 +55,6 @@ if(SECP256K1_BUILD_STATIC)
55
55
list (APPEND ${PROJECT_NAME} _installables secp256k1_static )
56
56
endif ()
57
57
58
- add_library (binary_interface INTERFACE )
59
- target_compile_definitions (binary_interface INTERFACE
60
- $< $< C_COMPILER_ID:MSVC> :_CRT_SECURE_NO_WARNINGS>
61
- )
62
-
63
58
add_library (link_library INTERFACE )
64
59
if (SECP256K1_BUILD_SHARED )
65
60
target_link_libraries (link_library INTERFACE secp256k1 )
@@ -69,21 +64,17 @@ endif()
69
64
70
65
if (SECP256K1_BUILD_BENCHMARK )
71
66
add_executable (bench bench.c )
72
- target_link_libraries (bench binary_interface link_library )
67
+ target_link_libraries (bench link_library )
73
68
add_executable (bench_internal bench_internal.c ${internal_obj} )
74
- target_link_libraries (bench_internal binary_interface )
75
69
add_executable (bench_ecmult bench_ecmult.c ${internal_obj} )
76
- target_link_libraries (bench_ecmult binary_interface )
77
70
endif ()
78
71
79
72
if (SECP256K1_BUILD_TESTS )
80
73
add_executable (noverify_tests tests.c ${internal_obj} )
81
- target_link_libraries (noverify_tests binary_interface )
82
74
add_test (noverify_tests noverify_tests )
83
75
if (NOT CMAKE_BUILD_TYPE STREQUAL "Coverage" )
84
76
add_executable (tests tests.c ${internal_obj} )
85
77
target_compile_definitions (tests PRIVATE VERIFY )
86
- target_link_libraries (tests binary_interface )
87
78
add_test (tests tests )
88
79
endif ()
89
80
endif ()
@@ -92,13 +83,12 @@ if(SECP256K1_BUILD_EXHAUSTIVE_TESTS)
92
83
# Note: do not include $<TARGET_OBJECTS:precomputed> in exhaustive_tests (it uses runtime-generated tables).
93
84
add_executable (exhaustive_tests tests_exhaustive.c ${common_obj} )
94
85
target_compile_definitions (exhaustive_tests PRIVATE $< $< NOT:$< CONFIG:Coverage> > :VERIFY> )
95
- target_link_libraries (exhaustive_tests binary_interface )
96
86
add_test (exhaustive_tests exhaustive_tests )
97
87
endif ()
98
88
99
89
if (SECP256K1_BUILD_CTIME_TESTS )
100
90
add_executable (ctime_tests ctime_tests.c )
101
- target_link_libraries (ctime_tests binary_interface link_library )
91
+ target_link_libraries (ctime_tests link_library )
102
92
endif ()
103
93
104
94
install (TARGETS ${${PROJECT_NAME}_installables}
0 commit comments