Skip to content

Commit 4a22b16

Browse files
authored
Initialized CMake variables for configure as 0
Init INCLUDE_INTTYPES_H, INCLUDE_STDINT_H, INCLUDE_SYS_TYPES_H, CMake variables as 0 It is need to prevent generate broken code in config_types.h So next code was genarated before #define INCLUDE_INTTYPES_H ... #if INCLUDE_INTTYPES_H ... #endif And got error: expected value in expression
1 parent 3069cc2 commit 4a22b16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ endfunction()
5151
message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
5252

5353
# Configure config_type.h
54+
set(INCLUDE_INTTYPES_H 0)
55+
set(INCLUDE_STDINT_H 0)
56+
set(INCLUDE_SYS_TYPES_H 0)
5457
check_include_files(inttypes.h INCLUDE_INTTYPES_H)
5558
check_include_files(stdint.h INCLUDE_STDINT_H)
5659
check_include_files(sys/types.h INCLUDE_SYS_TYPES_H)

0 commit comments

Comments
 (0)