-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# CMake support layer for SuiteSparse | ||
# | ||
# Copyright 2023 Sergiu Deitsch <[email protected]> | ||
# Copyright 2024 Sergiu Deitsch <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -16,7 +16,7 @@ | |
# limitations under the License. | ||
# | ||
|
||
cmake_minimum_required (VERSION 3.22) | ||
cmake_minimum_required (VERSION 3.22...3.30) | ||
|
||
if (NOT DEFINED CMAKE_CUDA_ARCHITECTURES) | ||
set (CMAKE_CUDA_ARCHITECTURES 75) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# CMake support layer for SuiteSparse | ||
# | ||
# Copyright 2016-2021 Sergiu Deitsch <[email protected]> | ||
# Copyright 2024 Sergiu Deitsch <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -16,7 +16,7 @@ | |
# limitations under the License. | ||
# | ||
|
||
cmake_minimum_required (VERSION 3.12) | ||
cmake_minimum_required (VERSION 3.12...3.30) | ||
project (cxsparse LANGUAGES C VERSION 3.2.0 | ||
DESCRIPTION "A Concise Sparse matrix package - Extended" | ||
HOMEPAGE_URL http://faculty.cse.tamu.edu/davis/suitesparse.html | ||
|
@@ -221,7 +221,7 @@ target_include_directories (cxsparse PUBLIC | |
) | ||
|
||
if (HAVE_M) | ||
target_link_libraries (cxsparse PRIVATE m) | ||
target_link_libraries (cxsparse PUBLIC m) | ||
endif (HAVE_M) | ||
|
||
if (NOT HAVE_C99_COMPLEX STREQUAL "") | ||
|
@@ -282,13 +282,11 @@ add_executable (cs_ci_demo2 | |
$<TARGET_OBJECTS:cs_ci_demo_base> | ||
Demo/cs_ci_demo2.c | ||
) | ||
target_link_libraries (cs_ci_demo2 PRIVATE cxsparse $<$<BOOL:${HAVE_M}>:m>) | ||
|
||
add_executable (cs_ci_demo3 | ||
$<TARGET_OBJECTS:cs_ci_demo_base> | ||
Demo/cs_ci_demo3.c | ||
) | ||
target_link_libraries (cs_ci_demo3 PRIVATE cxsparse $<$<BOOL:${HAVE_M}>:m>) | ||
|
||
add_executable (cs_cl_demo1 | ||
Demo/cs_cl_demo1.c | ||
|
@@ -306,13 +304,11 @@ add_executable (cs_cl_demo2 | |
$<TARGET_OBJECTS:cs_cl_demo_base> | ||
Demo/cs_cl_demo2.c | ||
) | ||
target_link_libraries (cs_cl_demo2 PRIVATE cxsparse $<$<BOOL:${HAVE_M}>:m>) | ||
|
||
add_executable (cs_cl_demo3 | ||
$<TARGET_OBJECTS:cs_cl_demo_base> | ||
Demo/cs_cl_demo3.c | ||
) | ||
target_link_libraries (cs_cl_demo3 PRIVATE cxsparse $<$<BOOL:${HAVE_M}>:m>) | ||
|
||
add_executable (cs_di_demo1 | ||
Demo/cs_di_demo1.c | ||
|