cmake: fix Windows build with CUnit

failmalloc and main tests succesfully pass the test now.
This commit is contained in:
Peter Wu 2016-03-17 23:32:07 +01:00
parent d10f149161
commit bd253e1bdd
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ if(HAVE_CUNIT)
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
ARCHIVE_OUTPUT_NAME nghttp2
)
target_compile_definitions(nghttp2_static PUBLIC "-DNGHTTP2_STATICLIB")
endif()
install(TARGETS nghttp2

View File

@ -22,6 +22,9 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
#include "nghttp2_npn_test.h"
#include <string.h>