mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 23:48:20 +00:00
port to cmake use official gh repo, with which the current one does not diverge subslot : 0/2 iuse : add openmp, fortran, python test : enabled Closes: https://bugs.gentoo.org/937609 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Closes: https://github.com/gentoo/gentoo/pull/41042 Signed-off-by: Sam James <sam@gentoo.org>
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
Always use sources instead of a hypothetical installed package.
|
|
diff '--color=auto' -uNr a/fortran/CMakeLists.txt b/fortran/CMakeLists.txt
|
|
--- a/fortran/CMakeLists.txt 2025-03-12 19:45:47.109635926 -0000
|
|
+++ b/fortran/CMakeLists.txt 2025-03-12 19:46:51.964594152 -0000
|
|
@@ -77,11 +77,8 @@
|
|
|
|
# Get Spglib if it's run as stand-alone project
|
|
if (NOT TARGET Spglib::symspg)
|
|
- find_package(Spglib CONFIG)
|
|
- if (NOT Spglib_FOUND)
|
|
message(STATUS "Using bundled spglib sources")
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/.. _deps/spglib-build)
|
|
- endif ()
|
|
endif ()
|
|
|
|
#[=============================================================================[
|
|
diff '--color=auto' -uNr a/python/CMakeLists.txt b/python/CMakeLists.txt
|
|
--- a/python/CMakeLists.txt 2025-03-12 19:45:47.113635861 -0000
|
|
+++ b/python/CMakeLists.txt 2025-03-12 19:47:13.720244693 -0000
|
|
@@ -47,11 +47,8 @@
|
|
|
|
# Get Spglib if it's run as stand-alone project
|
|
if (NOT TARGET Spglib::symspg)
|
|
- find_package(Spglib CONFIG)
|
|
- if (NOT Spglib_FOUND)
|
|
message(STATUS "Using bundled spglib sources")
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/.. _deps/spglib-build)
|
|
- endif ()
|
|
endif ()
|
|
|
|
#[=============================================================================[
|
|
diff '--color=auto' -uNr a/test/CMakeLists.txt b/test/CMakeLists.txt
|
|
--- a/test/CMakeLists.txt 2025-03-12 19:45:47.113635861 -0000
|
|
+++ b/test/CMakeLists.txt 2025-03-12 19:47:43.499766319 -0000
|
|
@@ -75,13 +75,11 @@
|
|
|
|
# Get Spglib if it's run as stand-alone project
|
|
if (NOT TARGET Spglib::symspg)
|
|
- set(spglib_find_package_args)
|
|
if (SPGLIB_WITH_Fortran)
|
|
list(APPEND
|
|
COMPONENTS Fortran
|
|
)
|
|
endif ()
|
|
- find_package(Spglib REQUIRED CONFIG ${spglib_find_package_args})
|
|
endif ()
|
|
|
|
set(BUILD_GMOCK OFF)
|