Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpo committed Jul 8, 2024
1 parent f43a490 commit 766b2b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,22 @@ else()
set(VCPKG_OVERLAY_TRIPLETS ${CMAKE_SOURCE_DIR}/cmake/vcpkg_triplets)
set(VCPKG_TARGET_TRIPLET ${VCPKG_OTEL_TRIPLET})
set(TRIPLET_DEFINITIONS -DVCPKG_OVERLAY_TRIPLETS="${VCPKG_OVERLAY_TRIPLETS}" -DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET})
message("APPLE is defined")
elseif(WIN32)
# On Windows, there is a conflict between abseil_dll.dll and the version used by Simulink.
# The shared library doesn't seem ABI stable and different versions cannot be used interchangeably.
# To sidestep the problem, use static library.
set(VCPKG_OVERLAY_TRIPLETS ${CMAKE_SOURCE_DIR}/cmake/vcpkg_triplets)
set(VCPKG_TARGET_TRIPLET x64-windows-otel-matlab)
set(TRIPLET_DEFINITIONS -DVCPKG_OVERLAY_TRIPLETS="${VCPKG_OVERLAY_TRIPLETS}" -DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET})
message("WIN32 is defined")
endif()
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
message("CMAKE_HOST_SYSTEM is set to Windows")
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin")
message("CMAKE_HOST_SYSTEM is set to Darwin")
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
message("CMAKE_HOST_SYSTEM is set to Linux")
endif()

set(VCPKG_FETCH_CONTENT_NAME vcpkg)
Expand Down

0 comments on commit 766b2b4

Please sign in to comment.