Update and modernize some aspects of CMake (#92)
authorKenneth Benzie <k.benzie@codeplay.com>
Thu, 25 Jun 2020 14:07:41 +0000 (15:07 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2020 14:07:41 +0000 (07:07 -0700)
commite546244b308fefa8592a16db6005db265187db86
treee92997d6dda52653544cae8ce985a414be3bb3fa
parentbbdf079426d859fb8a68c332b41b714f9c87d6ad
Update and modernize some aspects of CMake (#92)

* Update and modernize some aspects of CMake

Ease integration with projects targeting more recent CMake versions:

* Update minimum required CMake version to 3.1.
* Specify a version `1.2` to the `project` CMake command, this silences
  developer warnings when the OpenCL-ICD-Loader is integrated in another
  project using `add_subdirectory`.
* Specify include directory on the `OpenCL` target, this removes the
  need to set the OpenCL-Headers include directory globally (old CMake)
  or set them manually per target which links the `OpenCL` target
  library.

* Update AppVeyor project config
.appveyor.yml
CMakeLists.txt