File tree 9 files changed +26
-15
lines changed 9 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 39
39
cmake_minimum_required ( VERSION 3.20 ) # LAGraph can be built stand-alone
40
40
41
41
# version of LAGraph
42
- set ( LAGraph_DATE "Jan 10 , 2024" )
42
+ set ( LAGraph_DATE "Jan 20 , 2024" )
43
43
set ( LAGraph_VERSION_MAJOR 1 CACHE STRING "" FORCE )
44
44
set ( LAGraph_VERSION_MINOR 1 CACHE STRING "" FORCE )
45
- set ( LAGraph_VERSION_SUB 1 CACHE STRING "" FORCE )
45
+ set ( LAGraph_VERSION_SUB 2 CACHE STRING "" FORCE )
46
46
47
47
message ( STATUS "Building LAGraph version: v"
48
48
${LAGraph_VERSION_MAJOR} .
@@ -162,9 +162,6 @@ endif ( )
162
162
#-------------------------------------------------------------------------------
163
163
164
164
option ( LAGRAPH_USE_OPENMP "ON: Use OpenMP in LAGraph if available. OFF: Do not use OpenMP. (Default: SUITESPARSE_USE_OPENMP)" ${SUITESPARSE_USE_OPENMP} )
165
- if ( NOT SUITESPARSE_USE_OPENMP )
166
- set ( LAGRAPH_USE_OPENMP "OFF" CACHE STRING "" FORCE )
167
- endif ( )
168
165
if ( COVERAGE )
169
166
set ( LAGRAPH_USE_OPENMP "OFF" CACHE STRING "" FORCE ) # OK: test coverage is enabled
170
167
message ( STATUS "OpenMP disabled for test coverage" )
@@ -184,7 +181,7 @@ else ( )
184
181
endif ( )
185
182
endif ( )
186
183
187
- if ( OpenMP_C_FOUND )
184
+ if ( LAGRAPH_USE_OPENMP AND OpenMP_C_FOUND )
188
185
set ( LAGRAPH_HAS_OPENMP ON )
189
186
else ( )
190
187
set ( LAGRAPH_HAS_OPENMP OFF )
Original file line number Diff line number Diff line change
1
+ Jan 20, 2024: version 1.1.2
2
+
3
+ * minor update to build system
4
+
1
5
Jan 10, 2024: version 1.1.1
2
6
3
7
* minor update to build system
Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ remake:
85
85
86
86
# just run cmake to set things up
87
87
setup :
88
- ( cd build ; cmake $( CMAKE_OPTIONS) .. )
88
+ ( cd build && cmake $( CMAKE_OPTIONS) .. )
89
89
90
90
install :
91
- ( cd build ; cmake --install . )
91
+ ( cd build && cmake --install . )
92
92
93
93
# remove any installed libraries and #include files
94
94
uninstall :
Original file line number Diff line number Diff line change @@ -107,6 +107,16 @@ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0" )
107
107
cmake_policy ( SET CMP0104 NEW ) # initialize CUDA architectures
108
108
endif ( )
109
109
110
+ # SuiteSparse packages have many intentional extra semicolons, for code
111
+ # readability (such as "/* do nothing */ ;" in SuiteSparse_config.c). Disable
112
+ # the clang warning for these statements:
113
+ if ( CMAKE_C_COMPILER_ID STREQUAL "Clang" )
114
+ set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-extra-semi-stmt" )
115
+ endif ( )
116
+ if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
117
+ set ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wno-extra-semi-stmt" )
118
+ endif ( )
119
+
110
120
if ( WIN32 )
111
121
set ( CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true )
112
122
add_compile_definitions ( _CRT_SECURE_NO_WARNINGS )
@@ -120,7 +130,7 @@ set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
120
130
${CMAKE_SOURCE_DIR} /cmake_modules )
121
131
122
132
# Use OpenMP
123
- option ( SUITESPARSE_USE_OPENMP "ON (default): Use OpenMP if available. OFF: Do not use OpenMP" ON )
133
+ option ( SUITESPARSE_USE_OPENMP "ON (default): Use OpenMP in libraries by default if available. OFF: Do not use OpenMP by default. " ON )
124
134
125
135
# strict usage
126
136
option ( SUITESPARSE_USE_STRICT "ON: treat all _USE__ settings as strict if they are ON. OFF (default): consider *_USE_* as preferences, not strict" OFF )
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ endif ( )
85
85
# add OpenMP
86
86
#-------------------------------------------------------------------------------
87
87
88
- if ( OpenMP_C_FOUND )
88
+ if ( LAGRAPH_HAS_OPENMP )
89
89
if ( BUILD_SHARED_LIBS )
90
90
target_link_libraries ( LAGraphX PRIVATE OpenMP::OpenMP_C )
91
91
endif ( )
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ endif ( )
74
74
# add OpenMP
75
75
#-------------------------------------------------------------------------------
76
76
77
- if ( OpenMP_C_FOUND )
77
+ if ( LAGRAPH_HAS_OPENMP )
78
78
if ( BUILD_SHARED_LIBS )
79
79
target_link_libraries ( lagraphxtest PRIVATE OpenMP::OpenMP_C )
80
80
endif ( )
Original file line number Diff line number Diff line change 37
37
// See also the LAGraph_Version utility method, which returns these values.
38
38
// These definitions are derived from LAGraph/CMakeLists.txt.
39
39
40
- #define LAGRAPH_DATE "Jan 10 , 2024"
40
+ #define LAGRAPH_DATE "Jan 20 , 2024"
41
41
#define LAGRAPH_VERSION_MAJOR 1
42
42
#define LAGRAPH_VERSION_MINOR 1
43
- #define LAGRAPH_VERSION_UPDATE 1
43
+ #define LAGRAPH_VERSION_UPDATE 2
44
44
45
45
//==============================================================================
46
46
// include files and helper macros
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ endif ( )
90
90
# add OpenMP
91
91
#-------------------------------------------------------------------------------
92
92
93
- if ( OpenMP_C_FOUND )
93
+ if ( LAGRAPH_HAS_OPENMP )
94
94
if ( BUILD_SHARED_LIBS )
95
95
target_link_libraries ( LAGraph PRIVATE OpenMP::OpenMP_C )
96
96
endif ( )
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ endif ( )
76
76
# add OpenMP
77
77
#-------------------------------------------------------------------------------
78
78
79
- if ( OpenMP_C_FOUND )
79
+ if ( LAGRAPH_HAS_OPENMP )
80
80
if ( BUILD_SHARED_LIBS )
81
81
target_link_libraries ( lagraphtest PRIVATE OpenMP::OpenMP_C )
82
82
endif ( )
You can’t perform that action at this time.
0 commit comments