get rid of pthread

This commit is contained in:
Jules BOURDAIS 2024-11-21 16:14:36 +01:00
parent 9cbf811a77
commit e6ee1b7f91
35 changed files with 39 additions and 38 deletions

View File

@ -31,8 +31,9 @@ if (DEFINED EMSCRIPTEN)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
list(APPEND CMAKE_FIND_ROOT_PATH "/")
message("Using Emscripten")
add_compile_options("--use-port=boost_headers" "-pthread")
add_link_options("-pthread")
add_link_options("-sWASM_BIGINT=1")
# add_compile_options("--use-port=boost_headers" "-pthread")
# add_link_options("-pthread")
else()
message("Not using Emscripten")
endif()
@ -107,7 +108,7 @@ ELSE()
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
ENDIF()
FIND_PACKAGE(SalomePThread REQUIRED)
# FIND_PACKAGE(SalomePThread REQUIRED)
FIND_PACKAGE(SalomeBoost REQUIRED)
FIND_PACKAGE(SalomeOmniORB REQUIRED)
FIND_PACKAGE(SalomeLibXml2 REQUIRED)

View File

@ -23,7 +23,7 @@
INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
)
# additional preprocessor / compiler flags

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/GEOMImpl

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@
INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -25,7 +25,7 @@ ENDIF(SALOME_BUILD_GUI)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS}

View File

@ -21,7 +21,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OPENCV_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/SKETCHER
${CMAKE_CURRENT_SOURCE_DIR}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/idl
${CMAKE_CURRENT_SOURCE_DIR}

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/ShHealOper

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${LIBXML2_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/GEOMImpl

View File

@ -22,7 +22,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/idl
${CMAKE_CURRENT_SOURCE_DIR}

View File

@ -24,7 +24,7 @@ INCLUDE(${SWIG_USE_FILE})
# additional include directories
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
#${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -21,7 +21,7 @@
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -23,7 +23,7 @@
INCLUDE_DIRECTORIES(
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
)
# additional preprocessor / compiler flags

View File

@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}

View File

@ -25,7 +25,7 @@ ENDIF(SALOME_BUILD_TESTS)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${LIBXML2_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
)
@ -38,7 +38,7 @@ ADD_DEFINITIONS(
# libraries to link to
SET(_link_LIBRARIES
${PTHREAD_LIBRARIES}
# ${PTHREAD_LIBRARIES}
${LIBXML2_LIBRARIES}
${OpenCASCADE_ModelingData_LIBRARIES}
# ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}

View File

@ -21,7 +21,7 @@ ADD_SUBDIRECTORY(data)
# additional include directories
INCLUDE_DIRECTORIES(
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${CPPUNIT_INCLUDE_DIRS}
)

View File

@ -24,7 +24,7 @@ INCLUDE(${SWIG_USE_FILE})
# additional include directories
INCLUDE_DIRECTORIES(
${PYTHON_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# ${PTHREAD_INCLUDE_DIR}
${OpenCASCADE_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src/XAO
)