File tree Expand file tree Collapse file tree 9 files changed +26
-15
lines changed
Expand file tree Collapse file tree 9 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 3939cmake_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" )
4343set ( LAGraph_VERSION_MAJOR 1 CACHE STRING "" FORCE )
4444set ( 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
4747message ( STATUS "Building LAGraph version: v"
4848 ${LAGraph_VERSION_MAJOR} .
@@ -162,9 +162,6 @@ endif ( )
162162#-------------------------------------------------------------------------------
163163
164164option ( 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 ( )
168165if ( 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 ( )
185182endif ( )
186183
187- if ( OpenMP_C_FOUND )
184+ if ( LAGRAPH_USE_OPENMP AND OpenMP_C_FOUND )
188185 set ( LAGRAPH_HAS_OPENMP ON )
189186else ( )
190187 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+
15Jan 10, 2024: version 1.1.1
26
37 * minor update to build system
Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ remake:
8585
8686# just run cmake to set things up
8787setup :
88- ( cd build ; cmake $( CMAKE_OPTIONS) .. )
88+ ( cd build && cmake $( CMAKE_OPTIONS) .. )
8989
9090install :
91- ( cd build ; cmake --install . )
91+ ( cd build && cmake --install . )
9292
9393# remove any installed libraries and #include files
9494uninstall :
Original file line number Diff line number Diff line change @@ -107,6 +107,16 @@ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0" )
107107 cmake_policy ( SET CMP0104 NEW ) # initialize CUDA architectures
108108endif ( )
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+
110120if ( 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
126136option ( 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 ( )
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 ( )
Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments