From 20196cd8e9e3ff4709c95bba6c12c388c93d87e0 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 31 Jan 2025 13:06:44 +0100 Subject: [PATCH] Pyodide fixes --- nglib/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index 47eb6597..cebdaeb7 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -5,15 +5,13 @@ if(USE_OCC) install(FILES nglib_occ.h DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel) endif(USE_OCC) +target_link_libraries(nglib PUBLIC ngcore PRIVATE ${ZLIB_LIBRARIES}) + if(EMSCRIPTEN) - target_compile_options(nglib PUBLIC $>) - target_compile_definitions(nglib PUBLIC $) - target_include_directories(nglib PUBLIC $) target_include_directories(nglib PRIVATE $) - target_link_libraries(nglib PRIVATE ${ZLIB_LIBRARIES} $>) + target_link_libraries(nglib PRIVATE $>) else(EMSCRIPTEN) - target_link_libraries(nglib PUBLIC ngcore) - target_link_libraries( nglib PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} ${ZLIB_LIBRARIES} occ_libs netgen_cgns ) + target_link_libraries( nglib PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} occ_libs netgen_cgns ) endif(EMSCRIPTEN) install(TARGETS nglib netgen_cgns ${NG_INSTALL_DIR})