Skip to content

Commit

Permalink
Link against boost statically.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurSonzogni committed Dec 4, 2022
1 parent 5ddc2aa commit a749338
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ target_link_libraries(diagon_base
)
target_set_common(diagon_base)

set(Boost_USE_STATIC_LIBS ON)
add_subdirectory(src/screen)
add_subdirectory(src/translator/frame)
add_subdirectory(src/translator/grammar)
Expand Down
1 change: 0 additions & 1 deletion src/input_output_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ int main(int, const char**) {
if (!translator) {
std::cout << "Translator " << translator_name << " not found."
<< std::endl;
result = EXIT_FAILURE;
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/translator/graph_planar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
find_package(Boost COMPONENTS graph)

if (Boost_FOUND OR EMSCRIPTEN)
if (NOT APPLE AND (Boost_FOUND OR EMSCRIPTEN))
ANTLR(GraphPlanar.g4)
add_library(translator_graph_planar STATIC
GraphPlanarLexer.cpp
Expand Down

0 comments on commit a749338

Please sign in to comment.