Skip to content

Commit 3b461aa

Browse files
Merge pull request GraphBLAS#246 from GraphBLAS/v1.1_branch
LAGraph 1.1.2: minor updates to build system
2 parents a1a1381 + 1beaf9d commit 3b461aa

File tree

9 files changed

+26
-15
lines changed

9 files changed

+26
-15
lines changed

CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
cmake_minimum_required ( VERSION 3.20 ) # LAGraph can be built stand-alone
4040

4141
# version of LAGraph
42-
set ( LAGraph_DATE "Jan 10, 2024" )
42+
set ( LAGraph_DATE "Jan 20, 2024" )
4343
set ( LAGraph_VERSION_MAJOR 1 CACHE STRING "" FORCE )
4444
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 )
4646

4747
message ( STATUS "Building LAGraph version: v"
4848
${LAGraph_VERSION_MAJOR}.
@@ -162,9 +162,6 @@ endif ( )
162162
#-------------------------------------------------------------------------------
163163

164164
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 ( )
168165
if ( COVERAGE )
169166
set ( LAGRAPH_USE_OPENMP "OFF" CACHE STRING "" FORCE ) # OK: test coverage is enabled
170167
message ( STATUS "OpenMP disabled for test coverage" )
@@ -184,7 +181,7 @@ else ( )
184181
endif ( )
185182
endif ( )
186183

187-
if ( OpenMP_C_FOUND )
184+
if ( LAGRAPH_USE_OPENMP AND OpenMP_C_FOUND )
188185
set ( LAGRAPH_HAS_OPENMP ON )
189186
else ( )
190187
set ( LAGRAPH_HAS_OPENMP OFF )

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Jan 20, 2024: version 1.1.2
2+
3+
* minor update to build system
4+
15
Jan 10, 2024: version 1.1.1
26

37
* minor update to build system

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ remake:
8585

8686
# just run cmake to set things up
8787
setup:
88-
( cd build ; cmake $(CMAKE_OPTIONS) .. )
88+
( cd build && cmake $(CMAKE_OPTIONS) .. )
8989

9090
install:
91-
( cd build ; cmake --install . )
91+
( cd build && cmake --install . )
9292

9393
# remove any installed libraries and #include files
9494
uninstall:

cmake_modules/SuiteSparsePolicy.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0" )
107107
cmake_policy ( SET CMP0104 NEW ) # initialize CUDA architectures
108108
endif ( )
109109

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+
110120
if ( WIN32 )
111121
set ( CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true )
112122
add_compile_definitions ( _CRT_SECURE_NO_WARNINGS )
@@ -120,7 +130,7 @@ set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
120130
${CMAKE_SOURCE_DIR}/cmake_modules )
121131

122132
# 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 )
124134

125135
# strict usage
126136
option ( SUITESPARSE_USE_STRICT "ON: treat all _USE__ settings as strict if they are ON. OFF (default): consider *_USE_* as preferences, not strict" OFF )

experimental/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ endif ( )
8585
# add OpenMP
8686
#-------------------------------------------------------------------------------
8787

88-
if ( OpenMP_C_FOUND )
88+
if ( LAGRAPH_HAS_OPENMP )
8989
if ( BUILD_SHARED_LIBS )
9090
target_link_libraries ( LAGraphX PRIVATE OpenMP::OpenMP_C )
9191
endif ( )

experimental/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ endif ( )
7474
# add OpenMP
7575
#-------------------------------------------------------------------------------
7676

77-
if ( OpenMP_C_FOUND )
77+
if ( LAGRAPH_HAS_OPENMP )
7878
if ( BUILD_SHARED_LIBS )
7979
target_link_libraries ( lagraphxtest PRIVATE OpenMP::OpenMP_C )
8080
endif ( )

include/LAGraph.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
// See also the LAGraph_Version utility method, which returns these values.
3838
// These definitions are derived from LAGraph/CMakeLists.txt.
3939

40-
#define LAGRAPH_DATE "Jan 10, 2024"
40+
#define LAGRAPH_DATE "Jan 20, 2024"
4141
#define LAGRAPH_VERSION_MAJOR 1
4242
#define LAGRAPH_VERSION_MINOR 1
43-
#define LAGRAPH_VERSION_UPDATE 1
43+
#define LAGRAPH_VERSION_UPDATE 2
4444

4545
//==============================================================================
4646
// include files and helper macros

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ endif ( )
9090
# add OpenMP
9191
#-------------------------------------------------------------------------------
9292

93-
if ( OpenMP_C_FOUND )
93+
if ( LAGRAPH_HAS_OPENMP )
9494
if ( BUILD_SHARED_LIBS )
9595
target_link_libraries ( LAGraph PRIVATE OpenMP::OpenMP_C )
9696
endif ( )

src/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ endif ( )
7676
# add OpenMP
7777
#-------------------------------------------------------------------------------
7878

79-
if ( OpenMP_C_FOUND )
79+
if ( LAGRAPH_HAS_OPENMP )
8080
if ( BUILD_SHARED_LIBS )
8181
target_link_libraries ( lagraphtest PRIVATE OpenMP::OpenMP_C )
8282
endif ( )

0 commit comments

Comments
 (0)