Remove second Boost find routine
This commit is contained in:
parent
31c24f4421
commit
63a6237d2d
|
@ -164,21 +164,6 @@ elseif(MINGW)
|
|||
set(ODBC_LIBRARIES odbc32 odbccp32)
|
||||
endif()
|
||||
|
||||
########################################
|
||||
## find Boost if necessary
|
||||
########################################
|
||||
if(NANODBC_ENABLE_BOOST)
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
set(Boost_USE_MULTITHREADED ON)
|
||||
find_package(Boost COMPONENTS locale REQUIRED)
|
||||
if(Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
link_directories(${CMAKE_BINARY_DIR}/lib ${Boost_LIBRARY_DIRS})
|
||||
else()
|
||||
message(FATAL_ERROR "can not find boost")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
########################################
|
||||
## Mac OS X specifics for targets
|
||||
########################################
|
||||
|
|
Loading…
Reference in New Issue