Only look for nowide locally if the boost version is > 1070

This commit is contained in:
Joseph Lenox 2021-03-14 19:52:21 -05:00
parent f5dc6bf259
commit 5ed1541246

View File

@ -115,7 +115,11 @@ endif(NOT GIT_VERSION STREQUAL "")
find_package(Threads REQUIRED)
set(Boost_NO_BOOST_CMAKE ON)
find_package(Boost REQUIRED COMPONENTS system thread filesystem OPTIONAL_COMPONENTS nowide)
find_package(Boost REQUIRED COMPONENTS system thread filesystem)
if (${Boost_VERSION_MACRO} GREATER_EQUAL 107300)
find_package(Boost REQUIRED COMPONENTS system thread filesystem OPTIONAL_COMPONENTS nowide)
endif()
set(LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/../xs/src/)
set(GUI_LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/GUI/)