Skip to content

Commit

Permalink
tweaking some of the builds
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Dec 19, 2024
1 parent 55e0955 commit bf88c05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["scikit-build-core >=0.10", "nanobind >=2.4.0","cmake>=3.22"]
requires = ["scikit-build-core >=0.10", "nanobind >=2.4.0"]
build-backend = "scikit_build_core.build"

[project]
Expand Down
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_package(nanobind CONFIG REQUIRED)

nanobind_add_module(units_llnl NB_STATIC STABLE_ABI src/units_python.cpp)

target_link_libraries(units_llnl PUBLIC units::units)
target_link_libraries(units_llnl PRIVATE units::units)

# Install directive for scikit-build-core
install(TARGETS units_llnl LIBRARY DESTINATION units_llnl)
1 change: 1 addition & 0 deletions units/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ elseif(UNITS_BUILD_STATIC_LIBRARY)
)
target_link_libraries(units PRIVATE compile_flags_target)

set_target_properties(units PROPERTIES POSITION_INDEPENDENT_CODE ON)
if(UNITS_ENABLE_TESTS)
target_compile_definitions(
units PUBLIC -DENABLE_UNIT_TESTING=1 -DENABLE_UNIT_MAP_ACCESS=1
Expand Down

0 comments on commit bf88c05

Please sign in to comment.