We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836cb0a commit 9f6c6cbCopy full SHA for 9f6c6cb
1 file changed
CMakeLists.txt
@@ -166,9 +166,11 @@ set_target_properties(jres_solver_lib PROPERTIES OUTPUT_NAME "jres_solver")
166
167
if(WIN32)
168
target_sources(jres_solver_lib PRIVATE ${VERSION_RC})
169
- # Only export symbols if we are actually building shared
+
170
if(BUILD_SHARED_LIBS)
171
target_compile_definitions(jres_solver_lib PRIVATE JRES_SOLVER_EXPORTS)
172
+ else()
173
+ target_compile_definitions(jres_solver_lib PUBLIC JRES_STATIC)
174
endif()
175
176
0 commit comments