Skip to content

Commit

Permalink
Merge pull request #2123 from ERGO-Code/webdemo
Browse files Browse the repository at this point in the history
Webdemo Issue #2118
  • Loading branch information
jajhall authored Jan 13, 2025
2 parents 1a6a674 + 0fea435 commit fa71fe5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ else()

target_link_libraries(highs libhighs)

if(EMSCRIPTEN AND EMSCRIPTEN_HTML)
set(CMAKE_EXECUTABLE_SUFFIX ".html")
set_target_properties(highs PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/highs_webdemo_shell.html)
endif()

target_include_directories(highs PRIVATE
$<BUILD_INTERFACE:${HIGHS_SOURCE_DIR}/app>
Expand All @@ -66,4 +62,10 @@ else()
# install the binary
install(TARGETS highs EXPORT highs-targets
RUNTIME)
endif()

# Add demo to FAST_BUILD as well.
if(EMSCRIPTEN AND EMSCRIPTEN_HTML)
set(CMAKE_EXECUTABLE_SUFFIX ".html")
set_target_properties(highs PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/highs_webdemo_shell.html)
endif()

0 comments on commit fa71fe5

Please sign in to comment.