Skip to content
Snippets Groups Projects
Unverified Commit 9fd3b609 authored by Miloš Komarčević's avatar Miloš Komarčević Committed by GitHub
Browse files

Update libaec-config.cmake.in

Import library is a platform thing, not just MSVC.
parent 58677dbb
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ if (libaec_FOUND) ...@@ -60,7 +60,7 @@ if (libaec_FOUND)
else () else ()
add_library(libaec::aec SHARED IMPORTED) add_library(libaec::aec SHARED IMPORTED)
target_compile_definitions(libaec::aec INTERFACE LIBAEC_SHARED) target_compile_definitions(libaec::aec INTERFACE LIBAEC_SHARED)
if (MSVC) if (WIN32)
set_target_properties(libaec::aec PROPERTIES set_target_properties(libaec::aec PROPERTIES
IMPORTED_IMPLIB "${libaec_LIBRARY}" IMPORTED_IMPLIB "${libaec_LIBRARY}"
) )
...@@ -77,7 +77,7 @@ if (libaec_FOUND) ...@@ -77,7 +77,7 @@ if (libaec_FOUND)
else () else ()
add_library(libaec::sz SHARED IMPORTED) add_library(libaec::sz SHARED IMPORTED)
target_compile_definitions(libaec::sz INTERFACE LIBAEC_SHARED) target_compile_definitions(libaec::sz INTERFACE LIBAEC_SHARED)
if (MSVC) if (WIN32)
set_target_properties(libaec::sz PROPERTIES set_target_properties(libaec::sz PROPERTIES
IMPORTED_IMPLIB "${SZIP_LIBRARY}" IMPORTED_IMPLIB "${SZIP_LIBRARY}"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment