Skip to content

Commit d74a54e

Browse files
authored
name static libs dmdutil.lib and dmdutil64.lib on Windows
1 parent b54bd68 commit d74a54e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,10 @@ if(BUILD_STATIC)
210210

211211
target_include_directories(dmdutil_static PUBLIC ${DMDUTIL_INCLUDE_DIRS})
212212

213-
if(PLATFORM STREQUAL "win")
214-
set_target_properties(dmdutil_static PROPERTIES
215-
OUTPUT_NAME "dmdutil_static"
216-
)
213+
if(PLATFORM STREQUAL "win" AND ARCH STREQUAL "x64")
214+
set(DMDUTIL_OUTPUT_NAME "dmdutil64")
217215
else()
218-
set_target_properties(dmdutil_static PROPERTIES
219-
OUTPUT_NAME "dmdutil"
220-
)
216+
set(DMDUTIL_OUTPUT_NAME "dmdutil")
221217
endif()
222218

223219
install(TARGETS dmdutil_static

0 commit comments

Comments
 (0)