Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

cmake: support find_package(psimd) #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ConnorBaker
Copy link

Adds a CMake configuration file to make it possible for CMake-based projects to use find_package to consume this library.

@ConnorBaker ConnorBaker force-pushed the feat/support-cmake-find-package branch 2 times, most recently from f11afca to 601943a Compare July 4, 2023 02:42
@ConnorBaker ConnorBaker marked this pull request as ready for review July 4, 2023 02:43
@ConnorBaker ConnorBaker force-pushed the feat/support-cmake-find-package branch from 601943a to 2d7f3bd Compare July 4, 2023 19:56
@ConnorBaker
Copy link
Author

@Maratyszcza if you have the time, would you mind reviewing this?

@@ -1,17 +1,27 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)

INCLUDE(GNUInstallDirs)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're in here it'd be good to move this include to after PROJECT since the GNUInstallDirs module uses platform information initialized by PROJECT to determine the default lib directory:

CMake Warning (dev) at /opt/cmake/3.27.7/share/cmake-3.27/Modules/GNUInstallDirs.cmake:243 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  CMakeLists.txt:3 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants