Commit 62acbe7c authored by Patrick Boettcher's avatar Patrick Boettcher

cmake: do not set _STDLIB_H-define (fixes #100)

Setting this define makes that

    #include <stdlib.h>

does nothing (because of the include-guard). But this file
is needed for free() and realloc() and others.
parent 637c25d8
...@@ -41,14 +41,12 @@ set_target_properties(libconfig++ ...@@ -41,14 +41,12 @@ set_target_properties(libconfig++
target_compile_definitions(libconfig target_compile_definitions(libconfig
PRIVATE PRIVATE
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE
_STDLIB_H
YY_NO_UNISTD_H YY_NO_UNISTD_H
YY_USE_CONST ) YY_USE_CONST )
target_compile_definitions(libconfig++ target_compile_definitions(libconfig++
PRIVATE PRIVATE
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE
_STDLIB_H
YY_NO_UNISTD_H YY_NO_UNISTD_H
YY_USE_CONST ) YY_USE_CONST )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment