Skip to content
Snippets Groups Projects
Commit d66cd591 authored by Adam Wardynski's avatar Adam Wardynski Committed by Adam Wardynski
Browse files

Using auto-link boost feature in MSVC or BORLAND.

parent 01722a64
No related merge requests found
......@@ -46,7 +46,16 @@ include_directories(${WCCL_SOURCE_DIR})
set(LIBWCCL_VERSION "${ver_major}.${ver_minor}.${ver_patch}")
find_package(Boost 1.41 REQUIRED COMPONENTS program_options filesystem regex)
find_package(Boost 1.41 REQUIRED COMPONENTS program_options system filesystem regex)
if(MSVC OR BORLAND)
# Use the auto-linking feature, don't try to add libraries yourself:
set(Boost_LIBRARIES "")
# Note the default is to link static libs and it is left like that here.
# You can make it link to DLL by defining BOOST_#module#_DYN_LINK
# in C++ source file or somewhere in CMake file, e.g.
# add_definitions( -DBOOST_FILESYSTEM_DYN_LINK )
endif(MSVC OR BORLAND)
add_subdirectory(libwccl)
add_subdirectory(wcclparser)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment