Skip to content

Commit

Permalink
Issue with MacOS. Testing commit
Browse files Browse the repository at this point in the history
Enhance CMake scripts with additional logging for library paths and warnings
  • Loading branch information
dpasukhi committed Jan 9, 2025
1 parent 56b771a commit 09ea182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adm/cmake/occt_csf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,18 @@ else()
if (IOS)
find_library (Appkit_LIB NAMES UIKit)
set (CSF_Appkit ${Appkit_LIB})
message(WARNING "CSF_Appkit: ${CSF_Appkit}")
else()
find_library (Appkit_LIB NAMES AppKit)
set (CSF_Appkit ${Appkit_LIB})
message(WARNING "CSF_Appkit: ${CSF_Appkit}")
endif()
OCCT_CHECK_AND_UNSET (Appkit_LIB)

find_library (IOKit_LIB NAMES IOKit)
set (CSF_IOKit ${IOKit_LIB})
OCCT_CHECK_AND_UNSET (IOKit_LIB)

message(WARNING "CSF_IOKit: ${CSF_IOKit}")
if (IOS)
find_library (OpenGlesLibs_LIB NAMES OpenGLES)
set (CSF_OpenGlesLibs ${OpenGlesLibs_LIB})
Expand Down
3 changes: 3 additions & 0 deletions adm/cmake/occt_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ function (PROCESS_CSF_LIBRARIES CURRENT_CSF LIST_NAME TARGET_NAME)
get_filename_component(LIBRARY_DIR "${CSF_LIBRARY_ORIGINAL}" DIRECTORY)
list (APPEND FOUND_LIBS "${LIBRARY_NAME}")
set (RELEASE_DIR "${LIBRARY_DIR}")
message(WARNING "Library ${CSF_LIBRARY_ORIGINAL} not found in cache. Using original path.")
message(WARNING "Library name: ${LIBRARY_NAME}")
message(WARNING "Library directory: ${LIBRARY_DIR}")
endif()
if (DEBUG_DIR AND RELEASE_DIR)
list (APPEND FOUND_DEBUG_DIRS "${DEBUG_DIR}")
Expand Down

0 comments on commit 09ea182

Please sign in to comment.