mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 10:20:34 +05:00
Fix emscripten search paths
This commit is contained in:
parent
0d03310b89
commit
08f42ae643
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user