Skip to content

Commit f8143d5

Browse files
authored
Conditionally add Windows version resources (#795)
1 parent d01ffe3 commit f8143d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ if(BUILD_STATIC)
8484
target_compile_definitions( ${library_name} PUBLIC ADS_STATIC)
8585
else()
8686
add_library( ${library_name} SHARED ${ads_SRCS} ${ads_HEADERS})
87-
add_windows_version_resources(${library_name})
87+
if(WIN32)
88+
add_windows_version_resources(${library_name})
89+
endif()
8890
target_compile_definitions( ${library_name} PRIVATE ADS_SHARED_EXPORT)
8991
endif()
9092

0 commit comments

Comments
 (0)