From 3c314b5bda0c0d2c151915815602b654d6b695cf Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Fri, 2 Oct 2020 21:25:36 +0200 Subject: [PATCH] Add gold linker and add remove SysInfo for linux --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f64e3f8..1501c000 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,14 @@ execute_process(COMMAND add_compile_definitions(COMPILE_INFO="${BUILD_DATE} + ${GIT_COMMIT_HASH}") + + +if(UNIX) +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=gold") +endif() + + project(ScreenPlay) add_subdirectory(ScreenPlay) @@ -54,4 +62,7 @@ add_subdirectory(ScreenPlaySDK) add_subdirectory(ScreenPlayShader) add_subdirectory(ScreenPlayWallpaper) add_subdirectory(ScreenPlayWidget) + +if(WIN32) add_subdirectory(ScreenPlaySysInfo) +endif()