aboutsummaryrefslogtreecommitdiff
path: root/ports/stormlib
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stormlib')
-rw-r--r--ports/stormlib/CMakeLists.txt8
-rw-r--r--ports/stormlib/CONTROL3
2 files changed, 9 insertions, 2 deletions
diff --git a/ports/stormlib/CMakeLists.txt b/ports/stormlib/CMakeLists.txt
index 6a85775b5..e8bf793ab 100644
--- a/ports/stormlib/CMakeLists.txt
+++ b/ports/stormlib/CMakeLists.txt
@@ -268,6 +268,12 @@ if(WIN32)
target_compile_definitions(stormlib PRIVATE UNICODE _UNICODE)
endif()
+if(NOT MSVC)
+ # don't error on implicit declarations, which are invalid in C99 but commonly used
+ target_compile_options(stormlib PRIVATE -Wno-error=implicit-function-declaration)
+endif()
+
+
set_target_properties(stormlib PROPERTIES PUBLIC_HEADER "src/StormLib.h;src/StormPort.h")
install(TARGETS stormlib EXPORT stormlibConfig
@@ -277,4 +283,4 @@ install(TARGETS stormlib EXPORT stormlibConfig
PUBLIC_HEADER DESTINATION include
)
-install(EXPORT stormlibConfig NAMESPACE stormlib:: DESTINATION share/stormlib) \ No newline at end of file
+install(EXPORT stormlibConfig NAMESPACE stormlib:: DESTINATION share/stormlib)
diff --git a/ports/stormlib/CONTROL b/ports/stormlib/CONTROL
index 7f1513b78..4a38c9f3d 100644
--- a/ports/stormlib/CONTROL
+++ b/ports/stormlib/CONTROL
@@ -1,4 +1,5 @@
Source: stormlib
-Version: 2019-05-10-1
+Version: 2019-05-10
+Port-Version: 2
Build-Depends: zlib, bzip2
Description: StormLib is a library for opening and manipulating Blizzard MPQ files