change tool chain for examples

This commit is contained in:
Aaron 2023-02-23 16:40:21 +01:00 committed by bernat
parent eb0fb21dbf
commit 1495df195b
1 changed files with 11 additions and 0 deletions

View File

@ -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)