File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ if (NOT WIN32)
118
118
endif ()
119
119
120
120
target_compile_features (main PRIVATE cxx_std_${TRITON_MIN_CXX_STANDARD} )
121
- if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
121
+ if (WIN32 )
122
122
message ("Using MSVC as compiler, default target on Windows 10. "
123
123
"If the target system is not Windows 10, please update _WIN32_WINNT "
124
124
"to corresponding value." )
@@ -130,13 +130,30 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
130
130
target_compile_definitions (main
131
131
PRIVATE
132
132
NOMINMAX )
133
+
134
+ # Dependency from common.h
135
+ find_library (B64_LIBRARY NAMES b64 )
136
+ target_link_libraries (
137
+ main
138
+ PRIVATE
139
+ ${B64_LIBRARY}
140
+ )
141
+
133
142
else ()
143
+
134
144
target_compile_options (
135
145
main
136
146
PRIVATE
137
147
-Wall -Wextra -Wno-unused-parameter -Wno-deprecated-declarations -Werror
138
148
)
139
- endif ()
149
+
150
+ # Dependency from common.h
151
+ target_link_libraries (
152
+ main
153
+ PRIVATE
154
+ b64
155
+ )
156
+ endif ()
140
157
141
158
set (LIB_DIR "lib" )
142
159
if (LINUX )
Original file line number Diff line number Diff line change 59
59
../../shared_memory_manager.h
60
60
../../shared_memory_manager.cc
61
61
../../data_compressor.h
62
- ../../common.h
63
- ../../common.cc
64
62
../../restricted_features.h
65
63
../../classification.cc
64
+ ../../common.h
65
+ ../../common.cc
66
66
)
67
67
68
- set (PY_BINDING_DEPENDENCY_LIBS )
68
+ set (PY_BINDING_DEPENDENCY_LIBS
69
+ b64 ) # Dependency from common.h
69
70
70
71
# Conditional Linking Based on Flags
71
72
if (${TRITON_ENABLE_HTTP} )
You can’t perform that action at this time.
0 commit comments