build: fix windows CMake error
* fixed by converting backslashes in boost path to slashes
This commit is contained in:
+9
-6
@@ -94,23 +94,26 @@ add_definitions(${CLANG_DEFINITIONS})
|
|||||||
|
|
||||||
# Boost ------------------------------------------------------------------------
|
# Boost ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
set(Boost_USE_MULTITHREAD ON)
|
||||||
|
set(Boost_USE_STATIC_LIBS ON)
|
||||||
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
||||||
|
set(BOOST_LIBRARYDIR $ENV{BOOST_159_DIR})
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
set(BOOST_ROOT $ENV{BOOST_DIR})
|
set(BOOST_ROOT $ENV{BOOST_DIR})
|
||||||
elseif(UNIX AND APPLE)
|
elseif(UNIX AND APPLE)
|
||||||
set(BOOST_ROOT $ENV{BOOST_159_DIR})
|
set(BOOST_ROOT $ENV{BOOST_159_DIR})
|
||||||
set(Boost_NO_SYSTEM_PATHS ON)
|
set(Boost_NO_SYSTEM_PATHS ON)
|
||||||
else()
|
else()
|
||||||
|
STRING(REGEX REPLACE "\\\\" "/" BOOST_LIBRARYDIR ${BOOST_LIBRARYDIR})
|
||||||
|
|
||||||
if(${WINXXBITS} STREQUAL "Win32")
|
if(${WINXXBITS} STREQUAL "Win32")
|
||||||
set(BOOST_ROOT "$ENV{BOOST_159_DIR}/win32")
|
set(BOOST_ROOT "${BOOST_LIBRARYDIR}/win32")
|
||||||
else()
|
else()
|
||||||
set(BOOST_ROOT "$ENV{BOOST_159_DIR}/win64")
|
set(BOOST_ROOT "${BOOST_LIBRARYDIR}/win64")
|
||||||
endif()
|
endif()
|
||||||
set(Boost_NO_SYSTEM_PATHS ON)
|
set(Boost_NO_SYSTEM_PATHS ON)
|
||||||
endif()
|
endif()
|
||||||
set(Boost_USE_MULTITHREAD ON)
|
|
||||||
set(Boost_USE_STATIC_LIBS ON)
|
|
||||||
set(Boost_USE_STATIC_RUNTIME OFF)
|
|
||||||
set(BOOST_LIBRARYDIR $ENV{BOOST_159_DIR})
|
|
||||||
|
|
||||||
find_package(Boost 1.59 COMPONENTS system program_options filesystem date_time REQUIRED)
|
find_package(Boost 1.59 COMPONENTS system program_options filesystem date_time REQUIRED)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user