Explorar o código

fix #134: -DHV_STATICLIB if only BUILD_STATIC

ithewei %!s(int64=4) %!d(string=hai) anos
pai
achega
f2b848704e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -216,6 +216,7 @@ install(FILES ${LIBHV_HEADERS} DESTINATION include/hv)
 if(BUILD_SHARED)
     set(HV_LIBRARIES hv CACHE INTERNAL "link hv libraries")
 else()
+    add_definitions(-DHV_STATICLIB)
     set(HV_LIBRARIES hv_static ${LIBS} CACHE INTERNAL "link hv libraries")
 endif()