From 1495df195bdb3ee19bbb28fcb0828a3f582b6b03 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 23 Feb 2023 16:40:21 +0100 Subject: [PATCH] change tool chain for examples --- Examples/CppClient/ToolChain.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Examples/CppClient/ToolChain.cmake diff --git a/Examples/CppClient/ToolChain.cmake b/Examples/CppClient/ToolChain.cmake new file mode 100644 index 000000000..ae6e99bfe --- /dev/null +++ b/Examples/CppClient/ToolChain.cmake @@ -0,0 +1,11 @@ +message("Hello world!") + +set(CC, "$ENV{UE4_ROOT}/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang") +set(CXX, "$ENV{UE4_ROOT}/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++") + +message(STATUS "COMBINED_PATH: ${CC}") +message(STATUS "COMBINED_PATH: ${CXX}") + +set(CMAKE_C_COMPILER ${CC}) +set(CMAKE_CXX_COMPILER ${CXX}) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -fPIC -O3 -DNDEBUG" CACHE STRING "" FORCE)