Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion source/MRViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,15 @@ IF(NOT MRVIEWER_NO_VOXELS)
ENDIF()

IF(NOT MRVIEWER_NO_LOCALE)
find_package(Boost COMPONENTS locale REQUIRED)
# Emscripten's Boost package doesn't contain CMake config files
IF(EMSCRIPTEN)
IF(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
ENDIF()
find_package(Boost COMPONENTS locale REQUIRED)
ELSE()
find_package(Boost CONFIG COMPONENTS locale REQUIRED)
ENDIF()
target_link_libraries(${PROJECT_NAME} PRIVATE Boost::locale)
ENDIF()

Expand Down
Loading