Skip to content

Modern CMake review#1036

Merged
jhale merged 4 commits into
mainfrom
jhale/cmake-review
Jul 7, 2026
Merged

Modern CMake review#1036
jhale merged 4 commits into
mainfrom
jhale/cmake-review

Conversation

@jhale

@jhale jhale commented Jul 7, 2026

Copy link
Copy Markdown
Member

Few small improvements proposed by Claude Sonnet 4.6

jhale and others added 4 commits July 7, 2026 20:31
- Use target property WINDOWS_EXPORT_ALL_SYMBOLS instead of global
  CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS; drop redundant if(WIN32) guard
- Remove redundant PRIVATE include of CMAKE_CURRENT_BINARY_DIR already
  covered by the PUBLIC BUILD_INTERFACE generator expression
- Use relative paths in target_sources and HEADERS_basix list
- Merge split set_target_properties, target_compile_definitions, and
  target_link_libraries calls; add VERSION/SOVERSION properties
- Explicitly initialise BASIX_CXX_DEVELOPER_FLAGS/DEFINITIONS before
  list(APPEND) calls
- Remove unnecessary quotes from project() VERSION string

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Use target property WINDOWS_EXPORT_ALL_SYMBOLS on _basixcpp instead of
  global CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS; drop if(WIN32) guard
- Explicitly initialise BASIX_PY_CXX_DEVELOPER_FLAGS/DEFINITIONS before
  list(APPEND) calls
- Add -pipe compiler flag check to match cpp/CMakeLists.txt
- Merge split target_compile_definitions calls for MDSPAN defines
- Replace deprecated get_filename_component with cmake_path(GET ... PARENT_PATH)
- Change option default TRUE -> ON for conventional style

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jhale
jhale added this pull request to the merge queue Jul 7, 2026
Merged via the queue into main with commit 1100c86 Jul 7, 2026
30 checks passed
@jhale
jhale deleted the jhale/cmake-review branch July 7, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant