File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,19 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
66
77set ( SpecUtils_ENABLE_D3_CHART ON CACHE BOOL "" )
88set ( SpecUtils_D3_SUPPORT_FILE_STATIC ON CACHE BOOL "" )
9- set ( SpecUtils_ENABLE_URI_SPECTRA OFF CACHE BOOL "" ) #Lets not worry about linking to zlib right now
109set ( SpecUtils_PYTHON_BINDINGS ON CACHE BOOL "Build the python bindings" )
1110set ( SpecUtils_ENABLE_EQUALITY_CHECKS OFF CACHE BOOL "" )
1211set ( PERFORM_DEVELOPER_CHECKS OFF CACHE BOOL "" )
1312set ( SpecUtils_SHARED_LIB OFF CACHE BOOL "" ) #we'll statically link SpecUtils into the lib we create here
1413set ( SpecUtils_FLT_PARSE_METHOD "strtod" CACHE STRING "Float parsing method" )
1514
15+ # Enable URI spectra for macOS and Linux (since we are already linking to zlib), but not Windows
16+ if (WIN32 )
17+ set ( SpecUtils_ENABLE_URI_SPECTRA OFF CACHE BOOL "" )
18+ else ()
19+ set ( SpecUtils_ENABLE_URI_SPECTRA ON CACHE BOOL "" )
20+ endif ()
21+
1622add_subdirectory ( ${CMAKE_CURRENT_SOURCE_DIR} /../.. ${CMAKE_CURRENT_BINARY_DIR} /LibSpecUtils )
1723
1824if (NOT SKBUILD)
Original file line number Diff line number Diff line change @@ -1354,6 +1354,9 @@ NB_MODULE(SpecUtils, m) {
13541354 .value (" ScanDataXml" , SpecUtils::ParserType::ScanDataXml)
13551355 .value (" Json" , SpecUtils::ParserType::Json)
13561356 .value (" CaenHexagonGXml" , SpecUtils::ParserType::CaenHexagonGXml)
1357+ #if ( SpecUtils_ENABLE_URI_SPECTRA )
1358+ .value (" Uri" , SpecUtils::ParserType::Uri)
1359+ #endif
13571360 .value (" Auto" , SpecUtils::ParserType::Auto);
13581361
13591362
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44
55[project ]
66name = " SandiaSpecUtils"
7- version = " 0.0.6 "
7+ version = " 0.0.7 "
88description = " Python bindings for SpecUtils using nanobind and scikit-build"
99readme = " README.md"
1010requires-python = " >=3.9"
You can’t perform that action at this time.
0 commit comments