|
1 | 1 | cmake_minimum_required(VERSION 3.10 FATAL_ERROR) |
2 | 2 |
|
3 | | -# Load our CMake modules to search for DPCPP and Level Zero |
4 | | -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/") |
5 | | -find_package(Git REQUIRED) |
6 | | - include(GetProjectVersion) |
7 | | -# the get_version function is defined in the GetProjectVersion module and |
8 | | -# defines: VERSION, SEMVER, MAJOR, MINOR, PATCH. These variables are populated |
9 | | -# by parsing the output of git describe. |
10 | | -get_version() |
11 | 3 | project( |
12 | 4 | "libDPCTLSYCLInterface" |
13 | 5 | DESCRIPTION "A C API for a subset of SYCL" |
14 | 6 | ) |
15 | 7 |
|
| 8 | +# Load our CMake modules to search for DPCPP and Level Zero |
| 9 | +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/") |
| 10 | +find_package(Git REQUIRED) |
| 11 | + |
16 | 12 | option(DPCTL_CUSTOM_DPCPP_INSTALL_DIR |
17 | 13 | "Use a custom version of DPCPP installed at the provided location." |
18 | 14 | OFF |
@@ -158,10 +154,16 @@ if(DPCTL_ENABLE_LO_PROGRAM_CREATION) |
158 | 154 | ) |
159 | 155 | endif() |
160 | 156 |
|
| 157 | +# FIXME: Turning off for release until conda build can be packaging symbolic links |
161 | 158 | # NOTE: Till we hit 1.0.0 we will keep using the MINOR version to set the API |
162 | 159 | # version of the library. |
163 | | -set_target_properties(DPCTLSyclInterface PROPERTIES VERSION ${VERSION_MINOR}) |
164 | | -set_target_properties(DPCTLSyclInterface PROPERTIES SOVERSION 1) |
| 160 | +# include(GetProjectVersion) |
| 161 | +# the get_version function is defined in the GetProjectVersion module and |
| 162 | +# defines: VERSION, SEMVER, MAJOR, MINOR, PATCH. These variables are populated |
| 163 | +# by parsing the output of git describe. |
| 164 | +# get_version() |
| 165 | +# set_target_properties(DPCTLSyclInterface PROPERTIES VERSION ${VERSION_MINOR}) |
| 166 | +# set_target_properties(DPCTLSyclInterface PROPERTIES SOVERSION 1) |
165 | 167 |
|
166 | 168 | install(TARGETS |
167 | 169 | DPCTLSyclInterface |
|
0 commit comments