mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Merge pull request #75 from simulton/master
Fix cmake when compiling to a static lib
This commit is contained in:
commit
ec48140309
@ -64,7 +64,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
if(BUILD_STATIC)
|
if(BUILD_STATIC)
|
||||||
add_library(qtadvanceddocking STATIC ${ads_SRCS})
|
add_library(qtadvanceddocking STATIC ${ads_SRCS})
|
||||||
set(ads_COMPILE_DEFINE ${ads_COMPILE_DEFINE} ADS_STATIC)
|
target_compile_definitions(qtadvanceddocking PUBLIC ADS_STATIC)
|
||||||
else()
|
else()
|
||||||
add_library(qtadvanceddocking SHARED ${ads_SRCS})
|
add_library(qtadvanceddocking SHARED ${ads_SRCS})
|
||||||
set(ads_COMPILE_DEFINE ${ads_COMPILE_DEFINE} ADS_SHARED_EXPORT)
|
set(ads_COMPILE_DEFINE ${ads_COMPILE_DEFINE} ADS_SHARED_EXPORT)
|
||||||
|
Loading…
Reference in New Issue
Block a user