From 176cb9f1c05e12071329380f78cdab24db477b63 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 11 Feb 2022 15:51:18 +0100 Subject: [PATCH] Linux fixes --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1e0d10..2ab4398 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,12 @@ add_executable(PokemonScriptTester ${SRC_FILES}) add_definitions(-DLEVEL_U8) ADD_DEFINITIONS(-DANGELSCRIPT_DEBUGGER) -SET(_LINKS -static pkmnLib Arbutils AngelscriptDebugger -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic) +SET(_LINKS -static pkmnLib Arbutils AngelscriptDebugger) + +if (WINDOWS) + SET(_LINKS ${_LINKS} -Wl,-Bstatic -lgcc -lstdc++ -lpthread -Wl,-Bdynamic) +endif() + target_link_libraries(PokemonScriptTester PUBLIC ${_LINKS}) target_compile_options(PokemonScriptTester PRIVATE -Wall -Wextra -Werror)