Skip to content

Commit

Permalink
Merge pull request mfreiholz#2 from XenotriX/bugfix/cmake_static_lib
Browse files Browse the repository at this point in the history
Fix cmake when compiling to a static lib
  • Loading branch information
Tectu committed Oct 17, 2019
2 parents cdca8c2 + 5378d90 commit 0d3ec46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ else()
endif()
if(BUILD_STATIC)
add_library(qtadvanceddocking STATIC ${ads_SRCS})
set(ads_COMPILE_DEFINE ${ads_COMPILE_DEFINE} ADS_STATIC)
target_compile_definitions(qtadvanceddocking PUBLIC ADS_STATIC)
else()
add_library(qtadvanceddocking SHARED ${ads_SRCS})
set(ads_COMPILE_DEFINE ${ads_COMPILE_DEFINE} ADS_SHARED_EXPORT)
target_compile_definitions(qtadvanceddocking PUBLIC ADS_SHARED_EXPORT)
endif()
install(FILES ${ads_INSTALL_INCLUDE}
DESTINATION include
Expand Down

0 comments on commit 0d3ec46

Please sign in to comment.