Skip to content

Commit 80dac5b

Browse files
committed
adding some more prints to see if we find the dll
Signed-off-by: grdanny <[email protected]>
1 parent aaab628 commit 80dac5b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/cmake/build_OpenJPEG.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ include_directories(BEFORE ${OpenJPEG_INCLUDE_DIRS})
4343

4444

4545
if (OpenJPEG_BUILD_SHARED_LIBS)
46-
install_local_dependency_libs (OpenJPEG OpenJPEG)
46+
install_local_dependency_libs (OpenJPEG openjp2)
4747
endif ()

src/cmake/dependency_utils.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,17 +719,23 @@ endmacro ()
719719
# This is useful for dynamic libraries that we need to be part of our own
720720
# installation.
721721
macro (install_local_dependency_libs pkgname libname)
722+
message(" in install_local_dependency_libs pkgname = ${pkgname}")
723+
message(" in install_local_dependency_libs libname = ${libname}")
724+
722725
# We need to include the Imath dynamic libraries in our own install.
723726
# get_target_property(_lib_files Imath::Imath INTERFACE_LINK_LIBRARIES)
724727
set (patterns ${ARGN})
725728
file (GLOB _lib_files
726729
"${${pkgname}_LOCAL_INSTALL_DIR}/lib/*${libname}*"
727730
"${${pkgname}_LOCAL_INSTALL_DIR}/lib/${${PROJECT_NAME}_DEPENDENCY_BUILD_TYPE}/*${libname}*"
728731
)
732+
message(" in install_local_dependency_libs _lib_files = ${_lib_files}")
729733
install (FILES ${_lib_files} TYPE LIB COMPONENT user)
730734
# message("${pkgname}_LOCAL_INSTALL_DIR = ${${pkgname}_LOCAL_INSTALL_DIR}")
731735
# message(" lib files = ${_lib_files}")
732736
if (WIN32)
737+
message(" in install_local_dependency_libs found win32")
738+
733739
# On Windows, check for DLLs, which go in the bin directory
734740
file (GLOB _lib_files
735741
"${${pkgname}_LOCAL_INSTALL_DIR}/bin/*${libname}*.dll"

0 commit comments

Comments
 (0)