Skip to content

Commit

Permalink
BZip2 example: Fix WindowsStore build
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Feb 21, 2019
1 parent 898f948 commit 2ee9f2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/BZip2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ hunter_add_package(BZip2)
find_package(BZip2 CONFIG REQUIRED)
add_executable(foo foo.cpp)
target_link_libraries(foo BZip2::bz2)

if(MSVC)
target_compile_definitions(
foo
PRIVATE
_CRT_SECURE_NO_WARNINGS
)
endif()

0 comments on commit 2ee9f2f

Please sign in to comment.