Fix emscripten search paths

This commit is contained in:
Louis Gombert 2024-08-08 11:09:37 +00:00
parent 0d03310b89
commit 08f42ae643

View File

@ -26,6 +26,15 @@ PROJECT(SalomeSMESH C CXX)
# upper case # upper case
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC) STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
if (DEFINED EMSCRIPTEN)
list(APPEND CMAKE_FIND_ROOT_PATH "/")
message("Using Emscripten")
add_compile_options("--use-port=boost_headers" "-pthread")
add_link_options("-pthread")
else()
message("Not using Emscripten")
endif()
# Common CMake macros # Common CMake macros
# =================== # ===================
SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files") SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")