Skip to content

Commit

Permalink
Only look for nowide locally if the boost version is > 1070
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Mar 15, 2021
1 parent f5dc6bf commit 5ed1541
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down

0 comments on commit 5ed1541

Please sign in to comment.