From f320e89710b8ccac468f62e1d85d675b173853fb Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 5 Apr 2024 14:38:25 -0700 Subject: [PATCH] Update compiler build settings for CMake (#155) --- build/CompilerAndLinker.cmake | 4 ++++ build/UVAtlas-GitHub-Dev17.yml | 9 ++++++++- build/UVAtlas-GitHub-Test-Dev17.yml | 9 ++++++++- build/UVAtlas-GitHub-WSL-11.yml | 13 ++++++++++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/build/CompilerAndLinker.cmake b/build/CompilerAndLinker.cmake index ee290fc..759491f 100644 --- a/build/CompilerAndLinker.cmake +++ b/build/CompilerAndLinker.cmake @@ -66,6 +66,10 @@ elseif(NOT (${DIRECTX_ARCH} MATCHES "^arm")) set(ARCH_SSE2 $<$>:-msse2>) endif() + if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") + list(APPEND ARCH_SSE2 -mfpmath=sse) + endif() + list(APPEND COMPILER_SWITCHES ${ARCH_SSE2}) endif() diff --git a/build/UVAtlas-GitHub-Dev17.yml b/build/UVAtlas-GitHub-Dev17.yml index 99f365b..798bdf0 100644 --- a/build/UVAtlas-GitHub-Dev17.yml +++ b/build/UVAtlas-GitHub-Dev17.yml @@ -13,7 +13,14 @@ schedules: - main trigger: none -pr: none + +pr: + branches: + include: + - main + paths: + include: + - build/UVAtlas-GitHub-Dev17.yml resources: repositories: diff --git a/build/UVAtlas-GitHub-Test-Dev17.yml b/build/UVAtlas-GitHub-Test-Dev17.yml index b826bef..ddbc37d 100644 --- a/build/UVAtlas-GitHub-Test-Dev17.yml +++ b/build/UVAtlas-GitHub-Test-Dev17.yml @@ -13,7 +13,14 @@ schedules: - main trigger: none -pr: none + +pr: + branches: + include: + - main + paths: + include: + - build/UVAtlas-GitHub-Test-Dev17.yml name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) diff --git a/build/UVAtlas-GitHub-WSL-11.yml b/build/UVAtlas-GitHub-WSL-11.yml index 9178a5c..b5638bf 100644 --- a/build/UVAtlas-GitHub-WSL-11.yml +++ b/build/UVAtlas-GitHub-WSL-11.yml @@ -13,13 +13,24 @@ schedules: - main trigger: none -pr: none + +pr: + branches: + include: + - main + paths: + include: + - CMake* + - build/*.cmake + - build/*.in + - build/UVAtlas-GitHub-WSL-11.yml resources: repositories: - repository: self type: git ref: refs/heads/main + trigger: none name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)