Regression fixed. Introduced in e94a91ba7e.

Leads to 'dependency library not found' for dlls on windows.
master
Kolan Sh 6 years ago
parent 5a8221f571
commit 202aa6314f
  1. 10
      ValaLibCommonRules.cmake

@ -8,6 +8,13 @@ IF (NOT LibNoApi)
SET (generate_header ${LibName}-${MAJOR})
ENDIF (NOT LibNoApi)
IF (WIN32)
IF (NOT LibIsPlugin)
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/run") # Avoid of "dll not found" messages
ENDIF (NOT LibIsPlugin)
ENDIF (WIN32)
VALA_PRECOMPILE (VALA_C ${LibSources}
PACKAGES ${LibPackages}
OPTIONS --thread ${LibValaOpts} ${VALA_DEBUG} ${export_vaapi}
@ -24,9 +31,6 @@ SET_TARGET_PROPERTIES (${LibName} PROPERTIES VERSION ${MAJOR}.${MINOR}.${PATCH})
SET_TARGET_PROPERTIES (${LibName} PROPERTIES SOVERSION ${MAJOR})
IF (WIN32)
IF (NOT LibIsPlugin)
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/run") # Avoid of "dll not found" messages
ENDIF (NOT LibIsPlugin)
SET_TARGET_PROPERTIES (${LibName} PROPERTIES PREFIX "" IMPORT_PREFIX ""
SUFFIX "-${MAJOR}.dll" IMPORT_SUFFIX "-${MAJOR}.dll.a")
ENDIF (WIN32)

Loading…
Cancel
Save