mirror of https://github.com/Kylart/KawAnime.git
Build boost with shared library
This commit is contained in:
parent
5f93546ea2
commit
9431bcd1e0
|
@ -40,7 +40,7 @@ install:
|
|||
- cd %BOOST_BUILD_PATH%\src\engine
|
||||
- build.bat >nul
|
||||
- cd %BOOST_ROOT%
|
||||
- b2 cxxstd=14 address-model=64 threading=multi --with-system --with-date_time --toolset=msvc-14.1
|
||||
- b2 cxxstd=14 address-model=64 threading=multi --with-system --with-date_time --toolset=msvc-14.1 link=shared
|
||||
|
||||
- cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent
|
||||
- mkdir build && cd build
|
||||
|
|
|
@ -75,6 +75,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_JS_INC})
|
|||
# Essential library files to link to a node addon
|
||||
# You should add this line in every CMake.js based project
|
||||
if(MSVC)
|
||||
message("Linking boost ${Boost_LIBRARIES}")
|
||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB};${Boost_LIBRARIES})
|
||||
else()
|
||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
|
||||
|
|
Loading…
Reference in New Issue