Skip to content

Commit

Permalink
Fixed an issue with AX's cmake on windows producing the same library …
Browse files Browse the repository at this point in the history
…filenames

Signed-off-by: Nick Avramoussis <[email protected]>
  • Loading branch information
Idclip committed Dec 6, 2023
1 parent 41bb127 commit d858e64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openvdb_ax/openvdb_ax/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ if(OPENVDB_AX_STATIC)
PROPERTIES OUTPUT_NAME openvdb_ax
)

if(WIN32)
set_target_properties(openvdb_ax_static PROPERTIES PREFIX "lib")
endif()

target_link_libraries(openvdb_ax_static PUBLIC ${OPENVDB_AX_CORE_DEPENDENT_LIBS})

# @todo fix opaque pointer requirements
Expand Down
3 changes: 3 additions & 0 deletions pendingchanges/ax_windows_cmake_fix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Build:
- Fixed an issue with OpenVDB AX's CMake on Windows where the static and shared library targets would have the same name
[Reported by Nicholas Yue]

0 comments on commit d858e64

Please sign in to comment.