[geos-commits] [SCM] GEOS branch main updated. 7403b6fdee35ba00570b440f697b0976c6582252
git at osgeo.org
git at osgeo.org
Fri Dec 5 13:19:40 PST 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, main has been updated
via 7403b6fdee35ba00570b440f697b0976c6582252 (commit)
from a7626dbb6dd7f19b5edb6846bddb1550a0d7c142 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7403b6fdee35ba00570b440f697b0976c6582252
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Dec 5 13:19:04 2025 -0800
Add CMAKE detection for openmd simd support in compiler, closes #1334
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1e2f0c6e..79d397efb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -230,6 +230,24 @@ target_compile_options(geos_cxx_flags INTERFACE
# works with multi-configuration generators.
target_compile_definitions(geos_cxx_flags INTERFACE $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)
+# OpenMP SIMD
+include(CheckCXXCompilerFlag)
+
+if(MSVC)
+ set(SIMD_FLAGS "/openmp:experimental")
+elseif(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
+ set(SIMD_FLAGS "-qopenmp-simd")
+else()
+ set(SIMD_FLAGS "-fopenmp-simd")
+endif()
+
+check_cxx_compiler_flag(${SIMD_FLAGS} COMPILER_HAS_SIMD)
+if(COMPILER_HAS_SIMD)
+ target_compile_options(geos_cxx_flags INTERFACE ${SIMD_FLAGS})
+ target_compile_definitions(geos_cxx_flags INTERFACE HAVE_OPEN_SIMD)
+endif()
+
+
#-----------------------------------------------------------------------------
# Target geos_developer_cxx_flags: developer mode compilation flags
#-----------------------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list