Parcourir la source

fix #134: -DHV_STATICLIB if only BUILD_STATIC

ithewei il y a 4 ans
Parent
commit
f2b848704e
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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()