Skip to content

Commit

Permalink
Update portfile.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug authored Oct 27, 2024
1 parent 703a626 commit 229089d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/libmem/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ vcpkg_from_github(
# fix_DLL.patch

# Define the LM_EXPORT macro for Windows OS or shared builds
if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_LIBRARY_LINKAGE EQUAL "shared")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLM_EXPORT")
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE EQUAL "static")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DLM_EXPORT")
endif()

file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
Expand Down

0 comments on commit 229089d

Please sign in to comment.