├── CMakeLists.txt ├── example1 ├── CMakeLists.txt ├── build_mingw │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.11.0 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeRCCompiler.cmake │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ ├── CMakeCCompilerId.c │ │ │ │ └── a.exe │ │ │ └── CompilerIdCXX │ │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ │ └── a.exe │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── cmake.check_cache │ │ ├── feature_tests.bin │ │ ├── feature_tests.c │ │ ├── feature_tests.cxx │ │ ├── helloWorld.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ ├── linklibs.rsp │ │ │ ├── main.cpp.obj │ │ │ ├── objects.a │ │ │ ├── objects1.rsp │ │ │ └── progress.make │ │ └── progress.marks │ ├── Makefile │ ├── cmake_install.cmake │ └── helloWorld.exe └── main.cpp ├── example2 ├── CMakeLists.txt ├── main.cpp ├── version.cpp └── version.h ├── example3 ├── CMakeLists.txt ├── config.h.in ├── main.cpp ├── version.cpp └── version.h ├── example4 ├── CMakeLists.txt ├── lib │ ├── CMakeLists.txt │ ├── config.h.in │ ├── lib.cpp │ └── lib.h └── src │ ├── CMakeLists.txt │ ├── config.h.in │ └── main.cpp ├── example5 ├── CMakeLists.txt ├── src │ ├── CMakeLists.txt │ ├── config.h.in │ └── main.cpp └── sumLib │ ├── CMakeLists.txt │ ├── config.h.in │ ├── sumLib.cpp │ └── sumLib.h ├── example6 ├── CMakeLists.txt ├── cmake │ ├── FindPNG.cmake │ └── FindsumLib.cmake ├── config.h.in └── main.cpp ├── example7 ├── CMakeLists.txt ├── example │ ├── CMakeLists.txt │ └── main.cpp └── src │ ├── CMakeLists.txt │ ├── logger.cpp │ └── logger.h └── example8 ├── CMakeLists.txt ├── main.cpp ├── math.cpp └── math.h /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(CMakeExaples) 4 | 5 | add_subdirectory(example1) 6 | add_subdirectory(example2) 7 | add_subdirectory(example3) 8 | add_subdirectory(example4) 9 | # add_subdirectory(example5) 10 | # add_subdirectory(example6) -------------------------------------------------------------------------------- /example1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | cmake_minimum_required(VERSION 3.5) 7 | 8 | project(Example1) 9 | 10 | add_executable(helloWorld main.cpp) 11 | 12 | set_target_properties( 13 | helloWorld PROPERTIES 14 | CXX_STANDARD 11 15 | CXX_STANDARD_REQUIRED ON 16 | ) -------------------------------------------------------------------------------- /example1/build_mingw/CMakeCache.txt: -------------------------------------------------------------------------------- 1 | # This is the CMakeCache file. 2 | # For build in directory: c:/my/source/example1/build_mingw 3 | # It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe 4 | # You can edit this file to change values found and used by cmake. 5 | # If you do not want to change any of the values, simply exit the editor. 6 | # If you do want to change a value, simply edit, save, and exit the editor. 7 | # The syntax for the file is as follows: 8 | # KEY:TYPE=VALUE 9 | # KEY is the name of a variable in the cache. 10 | # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. 11 | # VALUE is the current value for the KEY. 12 | 13 | ######################## 14 | # EXTERNAL cache entries 15 | ######################## 16 | 17 | //Path to a program. 18 | CMAKE_AR:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ar.exe 19 | 20 | //Choose the type of build, options are: None Debug Release RelWithDebInfo 21 | // MinSizeRel ... 22 | CMAKE_BUILD_TYPE:STRING= 23 | 24 | //Enable/Disable color output during build. 25 | CMAKE_COLOR_MAKEFILE:BOOL=ON 26 | 27 | //CXX compiler 28 | CMAKE_CXX_COMPILER:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe 29 | 30 | //A wrapper around 'ar' adding the appropriate '--plugin' option 31 | // for the GCC compiler 32 | CMAKE_CXX_COMPILER_AR:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ar.exe 33 | 34 | //A wrapper around 'ranlib' adding the appropriate '--plugin' option 35 | // for the GCC compiler 36 | CMAKE_CXX_COMPILER_RANLIB:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ranlib.exe 37 | 38 | //Flags used by the CXX compiler during all build types. 39 | CMAKE_CXX_FLAGS:STRING= 40 | 41 | //Flags used by the CXX compiler during DEBUG builds. 42 | CMAKE_CXX_FLAGS_DEBUG:STRING=-g 43 | 44 | //Flags used by the CXX compiler during MINSIZEREL builds. 45 | CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 46 | 47 | //Flags used by the CXX compiler during RELEASE builds. 48 | CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 49 | 50 | //Flags used by the CXX compiler during RELWITHDEBINFO builds. 51 | CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 52 | 53 | //Libraries linked by default with all C++ applications. 54 | CMAKE_CXX_STANDARD_LIBRARIES:STRING=-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 55 | 56 | //C compiler 57 | CMAKE_C_COMPILER:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe 58 | 59 | //A wrapper around 'ar' adding the appropriate '--plugin' option 60 | // for the GCC compiler 61 | CMAKE_C_COMPILER_AR:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ar.exe 62 | 63 | //A wrapper around 'ranlib' adding the appropriate '--plugin' option 64 | // for the GCC compiler 65 | CMAKE_C_COMPILER_RANLIB:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ranlib.exe 66 | 67 | //Flags used by the C compiler during all build types. 68 | CMAKE_C_FLAGS:STRING= 69 | 70 | //Flags used by the C compiler during DEBUG builds. 71 | CMAKE_C_FLAGS_DEBUG:STRING=-g 72 | 73 | //Flags used by the C compiler during MINSIZEREL builds. 74 | CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 75 | 76 | //Flags used by the C compiler during RELEASE builds. 77 | CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 78 | 79 | //Flags used by the C compiler during RELWITHDEBINFO builds. 80 | CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 81 | 82 | //Libraries linked by default with all C applications. 83 | CMAKE_C_STANDARD_LIBRARIES:STRING=-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 84 | 85 | //Flags used by the linker during all build types. 86 | CMAKE_EXE_LINKER_FLAGS:STRING= 87 | 88 | //Flags used by the linker during DEBUG builds. 89 | CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= 90 | 91 | //Flags used by the linker during MINSIZEREL builds. 92 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= 93 | 94 | //Flags used by the linker during RELEASE builds. 95 | CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= 96 | 97 | //Flags used by the linker during RELWITHDEBINFO builds. 98 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 99 | 100 | //Convert GNU import libraries to MS format (requires Visual Studio) 101 | CMAKE_GNUtoMS:BOOL=OFF 102 | 103 | //Install path prefix, prepended onto install directories. 104 | CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/Example1 105 | 106 | //Path to a program. 107 | CMAKE_LINKER:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ld.exe 108 | 109 | //make program 110 | CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe 111 | 112 | //Flags used by the linker during the creation of modules during 113 | // all build types. 114 | CMAKE_MODULE_LINKER_FLAGS:STRING= 115 | 116 | //Flags used by the linker during the creation of modules during 117 | // DEBUG builds. 118 | CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= 119 | 120 | //Flags used by the linker during the creation of modules during 121 | // MINSIZEREL builds. 122 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= 123 | 124 | //Flags used by the linker during the creation of modules during 125 | // RELEASE builds. 126 | CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= 127 | 128 | //Flags used by the linker during the creation of modules during 129 | // RELWITHDEBINFO builds. 130 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 131 | 132 | //Path to a program. 133 | CMAKE_NM:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/nm.exe 134 | 135 | //Path to a program. 136 | CMAKE_OBJCOPY:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/objcopy.exe 137 | 138 | //Path to a program. 139 | CMAKE_OBJDUMP:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/objdump.exe 140 | 141 | //Value Computed by CMake 142 | CMAKE_PROJECT_NAME:STATIC=Example1 143 | 144 | //Path to a program. 145 | CMAKE_RANLIB:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ranlib.exe 146 | 147 | //RC compiler 148 | CMAKE_RC_COMPILER:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/windres.exe 149 | 150 | //Flags for Windows Resource Compiler during all build types. 151 | CMAKE_RC_FLAGS:STRING= 152 | 153 | //Flags for Windows Resource Compiler during DEBUG builds. 154 | CMAKE_RC_FLAGS_DEBUG:STRING= 155 | 156 | //Flags for Windows Resource Compiler during MINSIZEREL builds. 157 | CMAKE_RC_FLAGS_MINSIZEREL:STRING= 158 | 159 | //Flags for Windows Resource Compiler during RELEASE builds. 160 | CMAKE_RC_FLAGS_RELEASE:STRING= 161 | 162 | //Flags for Windows Resource Compiler during RELWITHDEBINFO builds. 163 | CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING= 164 | 165 | //Path to a program. 166 | CMAKE_SH:FILEPATH=CMAKE_SH-NOTFOUND 167 | 168 | //Flags used by the linker during the creation of shared libraries 169 | // during all build types. 170 | CMAKE_SHARED_LINKER_FLAGS:STRING= 171 | 172 | //Flags used by the linker during the creation of shared libraries 173 | // during DEBUG builds. 174 | CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= 175 | 176 | //Flags used by the linker during the creation of shared libraries 177 | // during MINSIZEREL builds. 178 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= 179 | 180 | //Flags used by the linker during the creation of shared libraries 181 | // during RELEASE builds. 182 | CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= 183 | 184 | //Flags used by the linker during the creation of shared libraries 185 | // during RELWITHDEBINFO builds. 186 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= 187 | 188 | //If set, runtime paths are not added when installing shared libraries, 189 | // but are added when building. 190 | CMAKE_SKIP_INSTALL_RPATH:BOOL=NO 191 | 192 | //If set, runtime paths are not added when using shared libraries. 193 | CMAKE_SKIP_RPATH:BOOL=NO 194 | 195 | //Flags used by the linker during the creation of static libraries 196 | // during all build types. 197 | CMAKE_STATIC_LINKER_FLAGS:STRING= 198 | 199 | //Flags used by the linker during the creation of static libraries 200 | // during DEBUG builds. 201 | CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= 202 | 203 | //Flags used by the linker during the creation of static libraries 204 | // during MINSIZEREL builds. 205 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= 206 | 207 | //Flags used by the linker during the creation of static libraries 208 | // during RELEASE builds. 209 | CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= 210 | 211 | //Flags used by the linker during the creation of static libraries 212 | // during RELWITHDEBINFO builds. 213 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= 214 | 215 | //Path to a program. 216 | CMAKE_STRIP:FILEPATH=C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/strip.exe 217 | 218 | //If this value is on, makefiles will be generated without the 219 | // .SILENT directive, and all commands will be echoed to the console 220 | // during the make. This is useful for debugging only. With Visual 221 | // Studio IDE projects all commands are done without /nologo. 222 | CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE 223 | 224 | //Value Computed by CMake 225 | Example1_BINARY_DIR:STATIC=C:/my/source/example1/build_mingw 226 | 227 | //Value Computed by CMake 228 | Example1_SOURCE_DIR:STATIC=C:/my/source/example1 229 | 230 | 231 | ######################## 232 | # INTERNAL cache entries 233 | ######################## 234 | 235 | //ADVANCED property for variable: CMAKE_AR 236 | CMAKE_AR-ADVANCED:INTERNAL=1 237 | //This is the directory where this CMakeCache.txt was created 238 | CMAKE_CACHEFILE_DIR:INTERNAL=c:/my/source/example1/build_mingw 239 | //Major version of cmake used to create the current loaded cache 240 | CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 241 | //Minor version of cmake used to create the current loaded cache 242 | CMAKE_CACHE_MINOR_VERSION:INTERNAL=11 243 | //Patch version of cmake used to create the current loaded cache 244 | CMAKE_CACHE_PATCH_VERSION:INTERNAL=0 245 | //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE 246 | CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 247 | //Path to CMake executable. 248 | CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe 249 | //Path to cpack program executable. 250 | CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe 251 | //Path to ctest program executable. 252 | CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe 253 | //ADVANCED property for variable: CMAKE_CXX_COMPILER 254 | CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 255 | //ADVANCED property for variable: CMAKE_CXX_COMPILER_AR 256 | CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 257 | //ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB 258 | CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 259 | //ADVANCED property for variable: CMAKE_CXX_FLAGS 260 | CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 261 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG 262 | CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 263 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL 264 | CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 265 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE 266 | CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 267 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO 268 | CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 269 | //ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES 270 | CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1 271 | //ADVANCED property for variable: CMAKE_C_COMPILER 272 | CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 273 | //ADVANCED property for variable: CMAKE_C_COMPILER_AR 274 | CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 275 | //ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB 276 | CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 277 | //ADVANCED property for variable: CMAKE_C_FLAGS 278 | CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 279 | //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG 280 | CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 281 | //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL 282 | CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 283 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE 284 | CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 285 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO 286 | CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 287 | //ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES 288 | CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1 289 | //Path to cache edit program executable. 290 | CMAKE_EDIT_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake-gui.exe 291 | //Executable file format 292 | CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown 293 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS 294 | CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 295 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG 296 | CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 297 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL 298 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 299 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE 300 | CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 301 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO 302 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 303 | //Name of external makefile project generator. 304 | CMAKE_EXTRA_GENERATOR:INTERNAL= 305 | //Name of generator. 306 | CMAKE_GENERATOR:INTERNAL=MinGW Makefiles 307 | //Generator instance identifier. 308 | CMAKE_GENERATOR_INSTANCE:INTERNAL= 309 | //Name of generator platform. 310 | CMAKE_GENERATOR_PLATFORM:INTERNAL= 311 | //Name of generator toolset. 312 | CMAKE_GENERATOR_TOOLSET:INTERNAL= 313 | //Source directory with the top level CMakeLists.txt file for this 314 | // project 315 | CMAKE_HOME_DIRECTORY:INTERNAL=C:/my/source/example1 316 | //ADVANCED property for variable: CMAKE_LINKER 317 | CMAKE_LINKER-ADVANCED:INTERNAL=1 318 | //ADVANCED property for variable: CMAKE_MAKE_PROGRAM 319 | CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 320 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS 321 | CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 322 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG 323 | CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 324 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL 325 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 326 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE 327 | CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 328 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO 329 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 330 | //ADVANCED property for variable: CMAKE_NM 331 | CMAKE_NM-ADVANCED:INTERNAL=1 332 | //number of local generators 333 | CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 334 | //ADVANCED property for variable: CMAKE_OBJCOPY 335 | CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 336 | //ADVANCED property for variable: CMAKE_OBJDUMP 337 | CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 338 | //Platform information initialized 339 | CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 340 | //ADVANCED property for variable: CMAKE_RANLIB 341 | CMAKE_RANLIB-ADVANCED:INTERNAL=1 342 | //ADVANCED property for variable: CMAKE_RC_COMPILER 343 | CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1 344 | CMAKE_RC_COMPILER_WORKS:INTERNAL=1 345 | //ADVANCED property for variable: CMAKE_RC_FLAGS 346 | CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1 347 | //ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG 348 | CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1 349 | //ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL 350 | CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 351 | //ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE 352 | CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1 353 | //ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO 354 | CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 355 | //Path to CMake installation. 356 | CMAKE_ROOT:INTERNAL=C:/Program Files/CMake/share/cmake-3.11 357 | //ADVANCED property for variable: CMAKE_SH 358 | CMAKE_SH-ADVANCED:INTERNAL=1 359 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS 360 | CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 361 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG 362 | CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 363 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL 364 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 365 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE 366 | CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 367 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO 368 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 369 | //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH 370 | CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 371 | //ADVANCED property for variable: CMAKE_SKIP_RPATH 372 | CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 373 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS 374 | CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 375 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG 376 | CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 377 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL 378 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 379 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE 380 | CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 381 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO 382 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 383 | //ADVANCED property for variable: CMAKE_STRIP 384 | CMAKE_STRIP-ADVANCED:INTERNAL=1 385 | //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE 386 | CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 387 | 388 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "8.1.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "MinGW") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_SIMULATE_VERSION "") 16 | 17 | 18 | 19 | set(CMAKE_AR "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ar.exe") 20 | set(CMAKE_C_COMPILER_AR "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ar.exe") 21 | set(CMAKE_RANLIB "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ranlib.exe") 22 | set(CMAKE_C_COMPILER_RANLIB "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ranlib.exe") 23 | set(CMAKE_LINKER "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ld.exe") 24 | set(CMAKE_COMPILER_IS_GNUCC 1) 25 | set(CMAKE_C_COMPILER_LOADED 1) 26 | set(CMAKE_C_COMPILER_WORKS TRUE) 27 | set(CMAKE_C_ABI_COMPILED TRUE) 28 | set(CMAKE_COMPILER_IS_MINGW 1) 29 | set(CMAKE_COMPILER_IS_CYGWIN ) 30 | if(CMAKE_COMPILER_IS_CYGWIN) 31 | set(CYGWIN 1) 32 | set(UNIX 1) 33 | endif() 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | if(CMAKE_COMPILER_IS_MINGW) 38 | set(MINGW 1) 39 | endif() 40 | set(CMAKE_C_COMPILER_ID_RUN 1) 41 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 42 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 43 | set(CMAKE_C_LINKER_PREFERENCE 10) 44 | 45 | # Save compiler ABI information. 46 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 47 | set(CMAKE_C_COMPILER_ABI "") 48 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 49 | 50 | if(CMAKE_C_SIZEOF_DATA_PTR) 51 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 52 | endif() 53 | 54 | if(CMAKE_C_COMPILER_ABI) 55 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 56 | endif() 57 | 58 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 59 | set(CMAKE_LIBRARY_ARCHITECTURE "") 60 | endif() 61 | 62 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 63 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 64 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 65 | endif() 66 | 67 | 68 | 69 | 70 | 71 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc;moldname;mingwex") 72 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib") 73 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 74 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CMakeCXXCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_CXX_COMPILER "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe") 2 | set(CMAKE_CXX_COMPILER_ARG1 "") 3 | set(CMAKE_CXX_COMPILER_ID "GNU") 4 | set(CMAKE_CXX_COMPILER_VERSION "8.1.0") 5 | set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_CXX_COMPILER_WRAPPER "") 7 | set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") 8 | set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17") 9 | set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") 10 | set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") 11 | set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 12 | set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") 13 | 14 | set(CMAKE_CXX_PLATFORM_ID "MinGW") 15 | set(CMAKE_CXX_SIMULATE_ID "") 16 | set(CMAKE_CXX_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ar.exe") 21 | set(CMAKE_CXX_COMPILER_AR "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ar.exe") 22 | set(CMAKE_RANLIB "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ranlib.exe") 23 | set(CMAKE_CXX_COMPILER_RANLIB "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc-ranlib.exe") 24 | set(CMAKE_LINKER "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/ld.exe") 25 | set(CMAKE_COMPILER_IS_GNUCXX 1) 26 | set(CMAKE_CXX_COMPILER_LOADED 1) 27 | set(CMAKE_CXX_COMPILER_WORKS TRUE) 28 | set(CMAKE_CXX_ABI_COMPILED TRUE) 29 | set(CMAKE_COMPILER_IS_MINGW 1) 30 | set(CMAKE_COMPILER_IS_CYGWIN ) 31 | if(CMAKE_COMPILER_IS_CYGWIN) 32 | set(CYGWIN 1) 33 | set(UNIX 1) 34 | endif() 35 | 36 | set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") 37 | 38 | if(CMAKE_COMPILER_IS_MINGW) 39 | set(MINGW 1) 40 | endif() 41 | set(CMAKE_CXX_COMPILER_ID_RUN 1) 42 | set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) 43 | set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) 44 | set(CMAKE_CXX_LINKER_PREFERENCE 30) 45 | set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_CXX_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_CXX_COMPILER_ABI "") 50 | set(CMAKE_CXX_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_CXX_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_CXX_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_CXX_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;mingw32;gcc_s;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc_s;gcc;moldname;mingwex") 74 | set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib") 75 | set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 76 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/3.11.0/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/3.11.0/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.17134") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.17134") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.17134") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.17134") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CompilerIdC/CMakeCCompilerId.c: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | # error "A C++ compiler has been selected for C." 3 | #endif 4 | 5 | #if defined(__18CXX) 6 | # define ID_VOID_MAIN 7 | #endif 8 | #if defined(__CLASSIC_C__) 9 | /* cv-qualifiers did not exist in K&R C */ 10 | # define const 11 | # define volatile 12 | #endif 13 | 14 | 15 | /* Version number components: V=Version, R=Revision, P=Patch 16 | Version date components: YYYY=Year, MM=Month, DD=Day */ 17 | 18 | #if defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | /* __INTEL_COMPILER = VRP */ 24 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 25 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 26 | # if defined(__INTEL_COMPILER_UPDATE) 27 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 28 | # else 29 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 30 | # endif 31 | # if defined(__INTEL_COMPILER_BUILD_DATE) 32 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 33 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 34 | # endif 35 | # if defined(_MSC_VER) 36 | /* _MSC_VER = VVRR */ 37 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 38 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 39 | # endif 40 | 41 | #elif defined(__PATHCC__) 42 | # define COMPILER_ID "PathScale" 43 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 44 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 45 | # if defined(__PATHCC_PATCHLEVEL__) 46 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 47 | # endif 48 | 49 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 50 | # define COMPILER_ID "Embarcadero" 51 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 52 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 53 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 54 | 55 | #elif defined(__BORLANDC__) 56 | # define COMPILER_ID "Borland" 57 | /* __BORLANDC__ = 0xVRR */ 58 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 59 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 60 | 61 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 62 | # define COMPILER_ID "Watcom" 63 | /* __WATCOMC__ = VVRR */ 64 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 65 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 66 | # if (__WATCOMC__ % 10) > 0 67 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 68 | # endif 69 | 70 | #elif defined(__WATCOMC__) 71 | # define COMPILER_ID "OpenWatcom" 72 | /* __WATCOMC__ = VVRP + 1100 */ 73 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 74 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 75 | # if (__WATCOMC__ % 10) > 0 76 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 77 | # endif 78 | 79 | #elif defined(__SUNPRO_C) 80 | # define COMPILER_ID "SunPro" 81 | # if __SUNPRO_C >= 0x5100 82 | /* __SUNPRO_C = 0xVRRP */ 83 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) 84 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) 85 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 86 | # else 87 | /* __SUNPRO_CC = 0xVRP */ 88 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) 89 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) 90 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 91 | # endif 92 | 93 | #elif defined(__HP_cc) 94 | # define COMPILER_ID "HP" 95 | /* __HP_cc = VVRRPP */ 96 | # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) 97 | # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) 98 | # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) 99 | 100 | #elif defined(__DECC) 101 | # define COMPILER_ID "Compaq" 102 | /* __DECC_VER = VVRRTPPPP */ 103 | # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) 104 | # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) 105 | # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) 106 | 107 | #elif defined(__IBMC__) && defined(__COMPILER_VER__) 108 | # define COMPILER_ID "zOS" 109 | # if defined(__ibmxl__) 110 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 111 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 112 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 113 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 114 | # else 115 | /* __IBMC__ = VRP */ 116 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 117 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 118 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 119 | # endif 120 | 121 | 122 | #elif defined(__ibmxl__) || (defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800) 123 | # define COMPILER_ID "XL" 124 | # if defined(__ibmxl__) 125 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 126 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 127 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 128 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 129 | # else 130 | /* __IBMC__ = VRP */ 131 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 132 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 133 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 134 | # endif 135 | 136 | 137 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 138 | # define COMPILER_ID "VisualAge" 139 | # if defined(__ibmxl__) 140 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 141 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 142 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 143 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 144 | # else 145 | /* __IBMC__ = VRP */ 146 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 147 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 148 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 149 | # endif 150 | 151 | 152 | #elif defined(__PGI) 153 | # define COMPILER_ID "PGI" 154 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 155 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 156 | # if defined(__PGIC_PATCHLEVEL__) 157 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 158 | # endif 159 | 160 | #elif defined(_CRAYC) 161 | # define COMPILER_ID "Cray" 162 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 163 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 164 | 165 | #elif defined(__TI_COMPILER_VERSION__) 166 | # define COMPILER_ID "TI" 167 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 168 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 169 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 170 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 171 | 172 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 173 | # define COMPILER_ID "Fujitsu" 174 | 175 | #elif defined(__TINYC__) 176 | # define COMPILER_ID "TinyCC" 177 | 178 | #elif defined(__BCC__) 179 | # define COMPILER_ID "Bruce" 180 | 181 | #elif defined(__SCO_VERSION__) 182 | # define COMPILER_ID "SCO" 183 | 184 | #elif defined(__clang__) && defined(__apple_build_version__) 185 | # define COMPILER_ID "AppleClang" 186 | # if defined(_MSC_VER) 187 | # define SIMULATE_ID "MSVC" 188 | # endif 189 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 190 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 191 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 192 | # if defined(_MSC_VER) 193 | /* _MSC_VER = VVRR */ 194 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 195 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 196 | # endif 197 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 198 | 199 | #elif defined(__clang__) 200 | # define COMPILER_ID "Clang" 201 | # if defined(_MSC_VER) 202 | # define SIMULATE_ID "MSVC" 203 | # endif 204 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 205 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 206 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 207 | # if defined(_MSC_VER) 208 | /* _MSC_VER = VVRR */ 209 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 210 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 211 | # endif 212 | 213 | #elif defined(__GNUC__) 214 | # define COMPILER_ID "GNU" 215 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 216 | # if defined(__GNUC_MINOR__) 217 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 218 | # endif 219 | # if defined(__GNUC_PATCHLEVEL__) 220 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 221 | # endif 222 | 223 | #elif defined(_MSC_VER) 224 | # define COMPILER_ID "MSVC" 225 | /* _MSC_VER = VVRR */ 226 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 227 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 228 | # if defined(_MSC_FULL_VER) 229 | # if _MSC_VER >= 1400 230 | /* _MSC_FULL_VER = VVRRPPPPP */ 231 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 232 | # else 233 | /* _MSC_FULL_VER = VVRRPPPP */ 234 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 235 | # endif 236 | # endif 237 | # if defined(_MSC_BUILD) 238 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 239 | # endif 240 | 241 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 242 | # define COMPILER_ID "ADSP" 243 | #if defined(__VISUALDSPVERSION__) 244 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 245 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 246 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 247 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 248 | #endif 249 | 250 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 251 | # define COMPILER_ID "IAR" 252 | # if defined(__VER__) 253 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) 254 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) 255 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) 256 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 257 | # endif 258 | 259 | #elif defined(__ARMCC_VERSION) 260 | # define COMPILER_ID "ARMCC" 261 | #if __ARMCC_VERSION >= 1000000 262 | /* __ARMCC_VERSION = VRRPPPP */ 263 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 264 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 265 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 266 | #else 267 | /* __ARMCC_VERSION = VRPPPP */ 268 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 269 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 270 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 271 | #endif 272 | 273 | 274 | #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) 275 | # define COMPILER_ID "SDCC" 276 | # if defined(__SDCC_VERSION_MAJOR) 277 | # define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) 278 | # define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) 279 | # define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) 280 | # else 281 | /* SDCC = VRP */ 282 | # define COMPILER_VERSION_MAJOR DEC(SDCC/100) 283 | # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) 284 | # define COMPILER_VERSION_PATCH DEC(SDCC % 10) 285 | # endif 286 | 287 | #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) 288 | # define COMPILER_ID "MIPSpro" 289 | # if defined(_SGI_COMPILER_VERSION) 290 | /* _SGI_COMPILER_VERSION = VRP */ 291 | # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) 292 | # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) 293 | # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) 294 | # else 295 | /* _COMPILER_VERSION = VRP */ 296 | # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) 297 | # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) 298 | # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) 299 | # endif 300 | 301 | 302 | /* These compilers are either not known or too old to define an 303 | identification macro. Try to identify the platform and guess that 304 | it is the native compiler. */ 305 | #elif defined(__sgi) 306 | # define COMPILER_ID "MIPSpro" 307 | 308 | #elif defined(__hpux) || defined(__hpua) 309 | # define COMPILER_ID "HP" 310 | 311 | #else /* unknown compiler */ 312 | # define COMPILER_ID "" 313 | #endif 314 | 315 | /* Construct the string literal in pieces to prevent the source from 316 | getting matched. Store it in a pointer rather than an array 317 | because some compilers will just produce instructions to fill the 318 | array rather than assigning a pointer to a static array. */ 319 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 320 | #ifdef SIMULATE_ID 321 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 322 | #endif 323 | 324 | #ifdef __QNXNTO__ 325 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 326 | #endif 327 | 328 | #if defined(__CRAYXE) || defined(__CRAYXC) 329 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 330 | #endif 331 | 332 | #define STRINGIFY_HELPER(X) #X 333 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 334 | 335 | /* Identify known platforms by name. */ 336 | #if defined(__linux) || defined(__linux__) || defined(linux) 337 | # define PLATFORM_ID "Linux" 338 | 339 | #elif defined(__CYGWIN__) 340 | # define PLATFORM_ID "Cygwin" 341 | 342 | #elif defined(__MINGW32__) 343 | # define PLATFORM_ID "MinGW" 344 | 345 | #elif defined(__APPLE__) 346 | # define PLATFORM_ID "Darwin" 347 | 348 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 349 | # define PLATFORM_ID "Windows" 350 | 351 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 352 | # define PLATFORM_ID "FreeBSD" 353 | 354 | #elif defined(__NetBSD__) || defined(__NetBSD) 355 | # define PLATFORM_ID "NetBSD" 356 | 357 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 358 | # define PLATFORM_ID "OpenBSD" 359 | 360 | #elif defined(__sun) || defined(sun) 361 | # define PLATFORM_ID "SunOS" 362 | 363 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 364 | # define PLATFORM_ID "AIX" 365 | 366 | #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) 367 | # define PLATFORM_ID "IRIX" 368 | 369 | #elif defined(__hpux) || defined(__hpux__) 370 | # define PLATFORM_ID "HP-UX" 371 | 372 | #elif defined(__HAIKU__) 373 | # define PLATFORM_ID "Haiku" 374 | 375 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 376 | # define PLATFORM_ID "BeOS" 377 | 378 | #elif defined(__QNX__) || defined(__QNXNTO__) 379 | # define PLATFORM_ID "QNX" 380 | 381 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 382 | # define PLATFORM_ID "Tru64" 383 | 384 | #elif defined(__riscos) || defined(__riscos__) 385 | # define PLATFORM_ID "RISCos" 386 | 387 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 388 | # define PLATFORM_ID "SINIX" 389 | 390 | #elif defined(__UNIX_SV__) 391 | # define PLATFORM_ID "UNIX_SV" 392 | 393 | #elif defined(__bsdos__) 394 | # define PLATFORM_ID "BSDOS" 395 | 396 | #elif defined(_MPRAS) || defined(MPRAS) 397 | # define PLATFORM_ID "MP-RAS" 398 | 399 | #elif defined(__osf) || defined(__osf__) 400 | # define PLATFORM_ID "OSF1" 401 | 402 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 403 | # define PLATFORM_ID "SCO_SV" 404 | 405 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 406 | # define PLATFORM_ID "ULTRIX" 407 | 408 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 409 | # define PLATFORM_ID "Xenix" 410 | 411 | #elif defined(__WATCOMC__) 412 | # if defined(__LINUX__) 413 | # define PLATFORM_ID "Linux" 414 | 415 | # elif defined(__DOS__) 416 | # define PLATFORM_ID "DOS" 417 | 418 | # elif defined(__OS2__) 419 | # define PLATFORM_ID "OS2" 420 | 421 | # elif defined(__WINDOWS__) 422 | # define PLATFORM_ID "Windows3x" 423 | 424 | # else /* unknown platform */ 425 | # define PLATFORM_ID 426 | # endif 427 | 428 | #else /* unknown platform */ 429 | # define PLATFORM_ID 430 | 431 | #endif 432 | 433 | /* For windows compilers MSVC and Intel we can determine 434 | the architecture of the compiler being used. This is because 435 | the compilers do not have flags that can change the architecture, 436 | but rather depend on which compiler is being used 437 | */ 438 | #if defined(_WIN32) && defined(_MSC_VER) 439 | # if defined(_M_IA64) 440 | # define ARCHITECTURE_ID "IA64" 441 | 442 | # elif defined(_M_X64) || defined(_M_AMD64) 443 | # define ARCHITECTURE_ID "x64" 444 | 445 | # elif defined(_M_IX86) 446 | # define ARCHITECTURE_ID "X86" 447 | 448 | # elif defined(_M_ARM64) 449 | # define ARCHITECTURE_ID "ARM64" 450 | 451 | # elif defined(_M_ARM) 452 | # if _M_ARM == 4 453 | # define ARCHITECTURE_ID "ARMV4I" 454 | # elif _M_ARM == 5 455 | # define ARCHITECTURE_ID "ARMV5I" 456 | # else 457 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 458 | # endif 459 | 460 | # elif defined(_M_MIPS) 461 | # define ARCHITECTURE_ID "MIPS" 462 | 463 | # elif defined(_M_SH) 464 | # define ARCHITECTURE_ID "SHx" 465 | 466 | # else /* unknown architecture */ 467 | # define ARCHITECTURE_ID "" 468 | # endif 469 | 470 | #elif defined(__WATCOMC__) 471 | # if defined(_M_I86) 472 | # define ARCHITECTURE_ID "I86" 473 | 474 | # elif defined(_M_IX86) 475 | # define ARCHITECTURE_ID "X86" 476 | 477 | # else /* unknown architecture */ 478 | # define ARCHITECTURE_ID "" 479 | # endif 480 | 481 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 482 | # if defined(__ICCARM__) 483 | # define ARCHITECTURE_ID "ARM" 484 | 485 | # elif defined(__ICCAVR__) 486 | # define ARCHITECTURE_ID "AVR" 487 | 488 | # else /* unknown architecture */ 489 | # define ARCHITECTURE_ID "" 490 | # endif 491 | #else 492 | # define ARCHITECTURE_ID 493 | #endif 494 | 495 | /* Convert integer to decimal digit literals. */ 496 | #define DEC(n) \ 497 | ('0' + (((n) / 10000000)%10)), \ 498 | ('0' + (((n) / 1000000)%10)), \ 499 | ('0' + (((n) / 100000)%10)), \ 500 | ('0' + (((n) / 10000)%10)), \ 501 | ('0' + (((n) / 1000)%10)), \ 502 | ('0' + (((n) / 100)%10)), \ 503 | ('0' + (((n) / 10)%10)), \ 504 | ('0' + ((n) % 10)) 505 | 506 | /* Convert integer to hex digit literals. */ 507 | #define HEX(n) \ 508 | ('0' + ((n)>>28 & 0xF)), \ 509 | ('0' + ((n)>>24 & 0xF)), \ 510 | ('0' + ((n)>>20 & 0xF)), \ 511 | ('0' + ((n)>>16 & 0xF)), \ 512 | ('0' + ((n)>>12 & 0xF)), \ 513 | ('0' + ((n)>>8 & 0xF)), \ 514 | ('0' + ((n)>>4 & 0xF)), \ 515 | ('0' + ((n) & 0xF)) 516 | 517 | /* Construct a string literal encoding the version number components. */ 518 | #ifdef COMPILER_VERSION_MAJOR 519 | char const info_version[] = { 520 | 'I', 'N', 'F', 'O', ':', 521 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 522 | COMPILER_VERSION_MAJOR, 523 | # ifdef COMPILER_VERSION_MINOR 524 | '.', COMPILER_VERSION_MINOR, 525 | # ifdef COMPILER_VERSION_PATCH 526 | '.', COMPILER_VERSION_PATCH, 527 | # ifdef COMPILER_VERSION_TWEAK 528 | '.', COMPILER_VERSION_TWEAK, 529 | # endif 530 | # endif 531 | # endif 532 | ']','\0'}; 533 | #endif 534 | 535 | /* Construct a string literal encoding the internal version number. */ 536 | #ifdef COMPILER_VERSION_INTERNAL 537 | char const info_version_internal[] = { 538 | 'I', 'N', 'F', 'O', ':', 539 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', 540 | 'i','n','t','e','r','n','a','l','[', 541 | COMPILER_VERSION_INTERNAL,']','\0'}; 542 | #endif 543 | 544 | /* Construct a string literal encoding the version number components. */ 545 | #ifdef SIMULATE_VERSION_MAJOR 546 | char const info_simulate_version[] = { 547 | 'I', 'N', 'F', 'O', ':', 548 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 549 | SIMULATE_VERSION_MAJOR, 550 | # ifdef SIMULATE_VERSION_MINOR 551 | '.', SIMULATE_VERSION_MINOR, 552 | # ifdef SIMULATE_VERSION_PATCH 553 | '.', SIMULATE_VERSION_PATCH, 554 | # ifdef SIMULATE_VERSION_TWEAK 555 | '.', SIMULATE_VERSION_TWEAK, 556 | # endif 557 | # endif 558 | # endif 559 | ']','\0'}; 560 | #endif 561 | 562 | /* Construct the string literal in pieces to prevent the source from 563 | getting matched. Store it in a pointer rather than an array 564 | because some compilers will just produce instructions to fill the 565 | array rather than assigning a pointer to a static array. */ 566 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 567 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 568 | 569 | 570 | 571 | 572 | #if !defined(__STDC__) 573 | # if (defined(_MSC_VER) && !defined(__clang__)) \ 574 | || (defined(__ibmxl__) || defined(__IBMC__)) 575 | # define C_DIALECT "90" 576 | # else 577 | # define C_DIALECT 578 | # endif 579 | #elif __STDC_VERSION__ >= 201000L 580 | # define C_DIALECT "11" 581 | #elif __STDC_VERSION__ >= 199901L 582 | # define C_DIALECT "99" 583 | #else 584 | # define C_DIALECT "90" 585 | #endif 586 | const char* info_language_dialect_default = 587 | "INFO" ":" "dialect_default[" C_DIALECT "]"; 588 | 589 | /*--------------------------------------------------------------------------*/ 590 | 591 | #ifdef ID_VOID_MAIN 592 | void main() {} 593 | #else 594 | # if defined(__CLASSIC_C__) 595 | int main(argc, argv) int argc; char *argv[]; 596 | # else 597 | int main(int argc, char* argv[]) 598 | # endif 599 | { 600 | int require = 0; 601 | require += info_compiler[argc]; 602 | require += info_platform[argc]; 603 | require += info_arch[argc]; 604 | #ifdef COMPILER_VERSION_MAJOR 605 | require += info_version[argc]; 606 | #endif 607 | #ifdef COMPILER_VERSION_INTERNAL 608 | require += info_version_internal[argc]; 609 | #endif 610 | #ifdef SIMULATE_ID 611 | require += info_simulate[argc]; 612 | #endif 613 | #ifdef SIMULATE_VERSION_MAJOR 614 | require += info_simulate_version[argc]; 615 | #endif 616 | #if defined(__CRAYXE) || defined(__CRAYXC) 617 | require += info_cray[argc]; 618 | #endif 619 | require += info_language_dialect_default[argc]; 620 | (void)argv; 621 | return require; 622 | } 623 | #endif 624 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CompilerIdC/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/3.11.0/CompilerIdC/a.exe -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CompilerIdCXX/CMakeCXXCompilerId.cpp: -------------------------------------------------------------------------------- 1 | /* This source file must have a .cpp extension so that all C++ compilers 2 | recognize the extension without flags. Borland does not know .cxx for 3 | example. */ 4 | #ifndef __cplusplus 5 | # error "A C compiler has been selected for C++." 6 | #endif 7 | 8 | 9 | /* Version number components: V=Version, R=Revision, P=Patch 10 | Version date components: YYYY=Year, MM=Month, DD=Day */ 11 | 12 | #if defined(__COMO__) 13 | # define COMPILER_ID "Comeau" 14 | /* __COMO_VERSION__ = VRR */ 15 | # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) 16 | # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) 17 | 18 | #elif defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | /* __INTEL_COMPILER = VRP */ 24 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 25 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 26 | # if defined(__INTEL_COMPILER_UPDATE) 27 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 28 | # else 29 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 30 | # endif 31 | # if defined(__INTEL_COMPILER_BUILD_DATE) 32 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 33 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 34 | # endif 35 | # if defined(_MSC_VER) 36 | /* _MSC_VER = VVRR */ 37 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 38 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 39 | # endif 40 | 41 | #elif defined(__PATHCC__) 42 | # define COMPILER_ID "PathScale" 43 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 44 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 45 | # if defined(__PATHCC_PATCHLEVEL__) 46 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 47 | # endif 48 | 49 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 50 | # define COMPILER_ID "Embarcadero" 51 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 52 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 53 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 54 | 55 | #elif defined(__BORLANDC__) 56 | # define COMPILER_ID "Borland" 57 | /* __BORLANDC__ = 0xVRR */ 58 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 59 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 60 | 61 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 62 | # define COMPILER_ID "Watcom" 63 | /* __WATCOMC__ = VVRR */ 64 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 65 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 66 | # if (__WATCOMC__ % 10) > 0 67 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 68 | # endif 69 | 70 | #elif defined(__WATCOMC__) 71 | # define COMPILER_ID "OpenWatcom" 72 | /* __WATCOMC__ = VVRP + 1100 */ 73 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 74 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 75 | # if (__WATCOMC__ % 10) > 0 76 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 77 | # endif 78 | 79 | #elif defined(__SUNPRO_CC) 80 | # define COMPILER_ID "SunPro" 81 | # if __SUNPRO_CC >= 0x5100 82 | /* __SUNPRO_CC = 0xVRRP */ 83 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) 84 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) 85 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 86 | # else 87 | /* __SUNPRO_CC = 0xVRP */ 88 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) 89 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) 90 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 91 | # endif 92 | 93 | #elif defined(__HP_aCC) 94 | # define COMPILER_ID "HP" 95 | /* __HP_aCC = VVRRPP */ 96 | # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) 97 | # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) 98 | # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) 99 | 100 | #elif defined(__DECCXX) 101 | # define COMPILER_ID "Compaq" 102 | /* __DECCXX_VER = VVRRTPPPP */ 103 | # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) 104 | # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) 105 | # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) 106 | 107 | #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) 108 | # define COMPILER_ID "zOS" 109 | # if defined(__ibmxl__) 110 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 111 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 112 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 113 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 114 | # else 115 | /* __IBMCPP__ = VRP */ 116 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 117 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 118 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 119 | # endif 120 | 121 | 122 | #elif defined(__ibmxl__) || (defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800) 123 | # define COMPILER_ID "XL" 124 | # if defined(__ibmxl__) 125 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 126 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 127 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 128 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 129 | # else 130 | /* __IBMCPP__ = VRP */ 131 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 132 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 133 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 134 | # endif 135 | 136 | 137 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 138 | # define COMPILER_ID "VisualAge" 139 | # if defined(__ibmxl__) 140 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 141 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 142 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 143 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 144 | # else 145 | /* __IBMCPP__ = VRP */ 146 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 147 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 148 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 149 | # endif 150 | 151 | 152 | #elif defined(__PGI) 153 | # define COMPILER_ID "PGI" 154 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 155 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 156 | # if defined(__PGIC_PATCHLEVEL__) 157 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 158 | # endif 159 | 160 | #elif defined(_CRAYC) 161 | # define COMPILER_ID "Cray" 162 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 163 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 164 | 165 | #elif defined(__TI_COMPILER_VERSION__) 166 | # define COMPILER_ID "TI" 167 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 168 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 169 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 170 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 171 | 172 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 173 | # define COMPILER_ID "Fujitsu" 174 | 175 | #elif defined(__SCO_VERSION__) 176 | # define COMPILER_ID "SCO" 177 | 178 | #elif defined(__clang__) && defined(__apple_build_version__) 179 | # define COMPILER_ID "AppleClang" 180 | # if defined(_MSC_VER) 181 | # define SIMULATE_ID "MSVC" 182 | # endif 183 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 184 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 185 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 186 | # if defined(_MSC_VER) 187 | /* _MSC_VER = VVRR */ 188 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 189 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 190 | # endif 191 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 192 | 193 | #elif defined(__clang__) 194 | # define COMPILER_ID "Clang" 195 | # if defined(_MSC_VER) 196 | # define SIMULATE_ID "MSVC" 197 | # endif 198 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 199 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 200 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 201 | # if defined(_MSC_VER) 202 | /* _MSC_VER = VVRR */ 203 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 204 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 205 | # endif 206 | 207 | #elif defined(__GNUC__) || defined(__GNUG__) 208 | # define COMPILER_ID "GNU" 209 | # if defined(__GNUC__) 210 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 211 | # else 212 | # define COMPILER_VERSION_MAJOR DEC(__GNUG__) 213 | # endif 214 | # if defined(__GNUC_MINOR__) 215 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 216 | # endif 217 | # if defined(__GNUC_PATCHLEVEL__) 218 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 219 | # endif 220 | 221 | #elif defined(_MSC_VER) 222 | # define COMPILER_ID "MSVC" 223 | /* _MSC_VER = VVRR */ 224 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 225 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 226 | # if defined(_MSC_FULL_VER) 227 | # if _MSC_VER >= 1400 228 | /* _MSC_FULL_VER = VVRRPPPPP */ 229 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 230 | # else 231 | /* _MSC_FULL_VER = VVRRPPPP */ 232 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 233 | # endif 234 | # endif 235 | # if defined(_MSC_BUILD) 236 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 237 | # endif 238 | 239 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 240 | # define COMPILER_ID "ADSP" 241 | #if defined(__VISUALDSPVERSION__) 242 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 243 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 244 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 245 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 246 | #endif 247 | 248 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 249 | # define COMPILER_ID "IAR" 250 | # if defined(__VER__) 251 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) 252 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) 253 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) 254 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 255 | # endif 256 | 257 | #elif defined(__ARMCC_VERSION) 258 | # define COMPILER_ID "ARMCC" 259 | #if __ARMCC_VERSION >= 1000000 260 | /* __ARMCC_VERSION = VRRPPPP */ 261 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 262 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 263 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 264 | #else 265 | /* __ARMCC_VERSION = VRPPPP */ 266 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 267 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 268 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 269 | #endif 270 | 271 | 272 | #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) 273 | # define COMPILER_ID "MIPSpro" 274 | # if defined(_SGI_COMPILER_VERSION) 275 | /* _SGI_COMPILER_VERSION = VRP */ 276 | # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) 277 | # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) 278 | # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) 279 | # else 280 | /* _COMPILER_VERSION = VRP */ 281 | # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) 282 | # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) 283 | # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) 284 | # endif 285 | 286 | 287 | /* These compilers are either not known or too old to define an 288 | identification macro. Try to identify the platform and guess that 289 | it is the native compiler. */ 290 | #elif defined(__sgi) 291 | # define COMPILER_ID "MIPSpro" 292 | 293 | #elif defined(__hpux) || defined(__hpua) 294 | # define COMPILER_ID "HP" 295 | 296 | #else /* unknown compiler */ 297 | # define COMPILER_ID "" 298 | #endif 299 | 300 | /* Construct the string literal in pieces to prevent the source from 301 | getting matched. Store it in a pointer rather than an array 302 | because some compilers will just produce instructions to fill the 303 | array rather than assigning a pointer to a static array. */ 304 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 305 | #ifdef SIMULATE_ID 306 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 307 | #endif 308 | 309 | #ifdef __QNXNTO__ 310 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 311 | #endif 312 | 313 | #if defined(__CRAYXE) || defined(__CRAYXC) 314 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 315 | #endif 316 | 317 | #define STRINGIFY_HELPER(X) #X 318 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 319 | 320 | /* Identify known platforms by name. */ 321 | #if defined(__linux) || defined(__linux__) || defined(linux) 322 | # define PLATFORM_ID "Linux" 323 | 324 | #elif defined(__CYGWIN__) 325 | # define PLATFORM_ID "Cygwin" 326 | 327 | #elif defined(__MINGW32__) 328 | # define PLATFORM_ID "MinGW" 329 | 330 | #elif defined(__APPLE__) 331 | # define PLATFORM_ID "Darwin" 332 | 333 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 334 | # define PLATFORM_ID "Windows" 335 | 336 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 337 | # define PLATFORM_ID "FreeBSD" 338 | 339 | #elif defined(__NetBSD__) || defined(__NetBSD) 340 | # define PLATFORM_ID "NetBSD" 341 | 342 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 343 | # define PLATFORM_ID "OpenBSD" 344 | 345 | #elif defined(__sun) || defined(sun) 346 | # define PLATFORM_ID "SunOS" 347 | 348 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 349 | # define PLATFORM_ID "AIX" 350 | 351 | #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) 352 | # define PLATFORM_ID "IRIX" 353 | 354 | #elif defined(__hpux) || defined(__hpux__) 355 | # define PLATFORM_ID "HP-UX" 356 | 357 | #elif defined(__HAIKU__) 358 | # define PLATFORM_ID "Haiku" 359 | 360 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 361 | # define PLATFORM_ID "BeOS" 362 | 363 | #elif defined(__QNX__) || defined(__QNXNTO__) 364 | # define PLATFORM_ID "QNX" 365 | 366 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 367 | # define PLATFORM_ID "Tru64" 368 | 369 | #elif defined(__riscos) || defined(__riscos__) 370 | # define PLATFORM_ID "RISCos" 371 | 372 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 373 | # define PLATFORM_ID "SINIX" 374 | 375 | #elif defined(__UNIX_SV__) 376 | # define PLATFORM_ID "UNIX_SV" 377 | 378 | #elif defined(__bsdos__) 379 | # define PLATFORM_ID "BSDOS" 380 | 381 | #elif defined(_MPRAS) || defined(MPRAS) 382 | # define PLATFORM_ID "MP-RAS" 383 | 384 | #elif defined(__osf) || defined(__osf__) 385 | # define PLATFORM_ID "OSF1" 386 | 387 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 388 | # define PLATFORM_ID "SCO_SV" 389 | 390 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 391 | # define PLATFORM_ID "ULTRIX" 392 | 393 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 394 | # define PLATFORM_ID "Xenix" 395 | 396 | #elif defined(__WATCOMC__) 397 | # if defined(__LINUX__) 398 | # define PLATFORM_ID "Linux" 399 | 400 | # elif defined(__DOS__) 401 | # define PLATFORM_ID "DOS" 402 | 403 | # elif defined(__OS2__) 404 | # define PLATFORM_ID "OS2" 405 | 406 | # elif defined(__WINDOWS__) 407 | # define PLATFORM_ID "Windows3x" 408 | 409 | # else /* unknown platform */ 410 | # define PLATFORM_ID 411 | # endif 412 | 413 | #else /* unknown platform */ 414 | # define PLATFORM_ID 415 | 416 | #endif 417 | 418 | /* For windows compilers MSVC and Intel we can determine 419 | the architecture of the compiler being used. This is because 420 | the compilers do not have flags that can change the architecture, 421 | but rather depend on which compiler is being used 422 | */ 423 | #if defined(_WIN32) && defined(_MSC_VER) 424 | # if defined(_M_IA64) 425 | # define ARCHITECTURE_ID "IA64" 426 | 427 | # elif defined(_M_X64) || defined(_M_AMD64) 428 | # define ARCHITECTURE_ID "x64" 429 | 430 | # elif defined(_M_IX86) 431 | # define ARCHITECTURE_ID "X86" 432 | 433 | # elif defined(_M_ARM64) 434 | # define ARCHITECTURE_ID "ARM64" 435 | 436 | # elif defined(_M_ARM) 437 | # if _M_ARM == 4 438 | # define ARCHITECTURE_ID "ARMV4I" 439 | # elif _M_ARM == 5 440 | # define ARCHITECTURE_ID "ARMV5I" 441 | # else 442 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 443 | # endif 444 | 445 | # elif defined(_M_MIPS) 446 | # define ARCHITECTURE_ID "MIPS" 447 | 448 | # elif defined(_M_SH) 449 | # define ARCHITECTURE_ID "SHx" 450 | 451 | # else /* unknown architecture */ 452 | # define ARCHITECTURE_ID "" 453 | # endif 454 | 455 | #elif defined(__WATCOMC__) 456 | # if defined(_M_I86) 457 | # define ARCHITECTURE_ID "I86" 458 | 459 | # elif defined(_M_IX86) 460 | # define ARCHITECTURE_ID "X86" 461 | 462 | # else /* unknown architecture */ 463 | # define ARCHITECTURE_ID "" 464 | # endif 465 | 466 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 467 | # if defined(__ICCARM__) 468 | # define ARCHITECTURE_ID "ARM" 469 | 470 | # elif defined(__ICCAVR__) 471 | # define ARCHITECTURE_ID "AVR" 472 | 473 | # else /* unknown architecture */ 474 | # define ARCHITECTURE_ID "" 475 | # endif 476 | #else 477 | # define ARCHITECTURE_ID 478 | #endif 479 | 480 | /* Convert integer to decimal digit literals. */ 481 | #define DEC(n) \ 482 | ('0' + (((n) / 10000000)%10)), \ 483 | ('0' + (((n) / 1000000)%10)), \ 484 | ('0' + (((n) / 100000)%10)), \ 485 | ('0' + (((n) / 10000)%10)), \ 486 | ('0' + (((n) / 1000)%10)), \ 487 | ('0' + (((n) / 100)%10)), \ 488 | ('0' + (((n) / 10)%10)), \ 489 | ('0' + ((n) % 10)) 490 | 491 | /* Convert integer to hex digit literals. */ 492 | #define HEX(n) \ 493 | ('0' + ((n)>>28 & 0xF)), \ 494 | ('0' + ((n)>>24 & 0xF)), \ 495 | ('0' + ((n)>>20 & 0xF)), \ 496 | ('0' + ((n)>>16 & 0xF)), \ 497 | ('0' + ((n)>>12 & 0xF)), \ 498 | ('0' + ((n)>>8 & 0xF)), \ 499 | ('0' + ((n)>>4 & 0xF)), \ 500 | ('0' + ((n) & 0xF)) 501 | 502 | /* Construct a string literal encoding the version number components. */ 503 | #ifdef COMPILER_VERSION_MAJOR 504 | char const info_version[] = { 505 | 'I', 'N', 'F', 'O', ':', 506 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 507 | COMPILER_VERSION_MAJOR, 508 | # ifdef COMPILER_VERSION_MINOR 509 | '.', COMPILER_VERSION_MINOR, 510 | # ifdef COMPILER_VERSION_PATCH 511 | '.', COMPILER_VERSION_PATCH, 512 | # ifdef COMPILER_VERSION_TWEAK 513 | '.', COMPILER_VERSION_TWEAK, 514 | # endif 515 | # endif 516 | # endif 517 | ']','\0'}; 518 | #endif 519 | 520 | /* Construct a string literal encoding the internal version number. */ 521 | #ifdef COMPILER_VERSION_INTERNAL 522 | char const info_version_internal[] = { 523 | 'I', 'N', 'F', 'O', ':', 524 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', 525 | 'i','n','t','e','r','n','a','l','[', 526 | COMPILER_VERSION_INTERNAL,']','\0'}; 527 | #endif 528 | 529 | /* Construct a string literal encoding the version number components. */ 530 | #ifdef SIMULATE_VERSION_MAJOR 531 | char const info_simulate_version[] = { 532 | 'I', 'N', 'F', 'O', ':', 533 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 534 | SIMULATE_VERSION_MAJOR, 535 | # ifdef SIMULATE_VERSION_MINOR 536 | '.', SIMULATE_VERSION_MINOR, 537 | # ifdef SIMULATE_VERSION_PATCH 538 | '.', SIMULATE_VERSION_PATCH, 539 | # ifdef SIMULATE_VERSION_TWEAK 540 | '.', SIMULATE_VERSION_TWEAK, 541 | # endif 542 | # endif 543 | # endif 544 | ']','\0'}; 545 | #endif 546 | 547 | /* Construct the string literal in pieces to prevent the source from 548 | getting matched. Store it in a pointer rather than an array 549 | because some compilers will just produce instructions to fill the 550 | array rather than assigning a pointer to a static array. */ 551 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 552 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 553 | 554 | 555 | 556 | 557 | #if defined(_MSC_VER) && defined(_MSVC_LANG) 558 | #define CXX_STD _MSVC_LANG 559 | #else 560 | #define CXX_STD __cplusplus 561 | #endif 562 | 563 | const char* info_language_dialect_default = "INFO" ":" "dialect_default[" 564 | #if CXX_STD > 201402L 565 | "17" 566 | #elif CXX_STD >= 201402L 567 | "14" 568 | #elif CXX_STD >= 201103L 569 | "11" 570 | #else 571 | "98" 572 | #endif 573 | "]"; 574 | 575 | /*--------------------------------------------------------------------------*/ 576 | 577 | int main(int argc, char* argv[]) 578 | { 579 | int require = 0; 580 | require += info_compiler[argc]; 581 | require += info_platform[argc]; 582 | #ifdef COMPILER_VERSION_MAJOR 583 | require += info_version[argc]; 584 | #endif 585 | #ifdef COMPILER_VERSION_INTERNAL 586 | require += info_version_internal[argc]; 587 | #endif 588 | #ifdef SIMULATE_ID 589 | require += info_simulate[argc]; 590 | #endif 591 | #ifdef SIMULATE_VERSION_MAJOR 592 | require += info_simulate_version[argc]; 593 | #endif 594 | #if defined(__CRAYXE) || defined(__CRAYXC) 595 | require += info_cray[argc]; 596 | #endif 597 | require += info_language_dialect_default[argc]; 598 | (void)argv; 599 | return require; 600 | } 601 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/3.11.0/CompilerIdCXX/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/3.11.0/CompilerIdCXX/a.exe -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "C:/my/source/example1") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "C:/my/source/example1/build_mingw") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/CMakeOutput.log: -------------------------------------------------------------------------------- 1 | The system is: Windows - 10.0.17134 - AMD64 2 | Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. 3 | Compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe 4 | Build flags: 5 | Id flags: 6 | 7 | The output was: 8 | 0 9 | 10 | 11 | Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe" 12 | 13 | The C compiler identification is GNU, found in "C:/my/source/example1/build_mingw/CMakeFiles/3.11.0/CompilerIdC/a.exe" 14 | 15 | Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. 16 | Compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe 17 | Build flags: 18 | Id flags: 19 | 20 | The output was: 21 | 0 22 | 23 | 24 | Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe" 25 | 26 | The CXX compiler identification is GNU, found in "C:/my/source/example1/build_mingw/CMakeFiles/3.11.0/CompilerIdCXX/a.exe" 27 | 28 | Determining if the C compiler works passed with the following output: 29 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 30 | 31 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_b3689/fast" 32 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_b3689.dir\build.make CMakeFiles/cmTC_b3689.dir/build 33 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 34 | Building C object CMakeFiles/cmTC_b3689.dir/testCCompiler.c.obj 35 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_b3689.dir\testCCompiler.c.obj -c C:\my\source\example1\build_mingw\CMakeFiles\CMakeTmp\testCCompiler.c 36 | Linking C executable cmTC_b3689.exe 37 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_b3689.dir\link.txt --verbose=1 38 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_b3689.dir/objects.a 39 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_b3689.dir/objects.a @CMakeFiles\cmTC_b3689.dir\objects1.rsp 40 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -Wl,--whole-archive CMakeFiles\cmTC_b3689.dir/objects.a -Wl,--no-whole-archive -o cmTC_b3689.exe -Wl,--out-implib,libcmTC_b3689.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_b3689.dir\linklibs.rsp 41 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 42 | 43 | 44 | Detecting C compiler ABI info compiled with the following output: 45 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 46 | 47 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_dcb94/fast" 48 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_dcb94.dir\build.make CMakeFiles/cmTC_dcb94.dir/build 49 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 50 | Building C object CMakeFiles/cmTC_dcb94.dir/CMakeCCompilerABI.c.obj 51 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_dcb94.dir\CMakeCCompilerABI.c.obj -c "C:\Program Files\CMake\share\cmake-3.11\Modules\CMakeCCompilerABI.c" 52 | Linking C executable cmTC_dcb94.exe 53 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_dcb94.dir\link.txt --verbose=1 54 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_dcb94.dir/objects.a 55 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_dcb94.dir/objects.a @CMakeFiles\cmTC_dcb94.dir\objects1.rsp 56 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -v -Wl,--whole-archive CMakeFiles\cmTC_dcb94.dir/objects.a -Wl,--no-whole-archive -o cmTC_dcb94.exe -Wl,--out-implib,libcmTC_dcb94.dll.a -Wl,--major-image-version,0,--minor-image-version,0 57 | Using built-in specs. 58 | COLLECT_GCC=C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe 59 | COLLECT_LTO_WRAPPER=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe 60 | Target: x86_64-w64-mingw32 61 | Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib ' 62 | Thread model: posix 63 | gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 64 | COMPILER_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ 65 | LIBRARY_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../ 66 | COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_dcb94.exe' '-mtune=core2' '-march=nocona' 67 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe -plugin C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\STAROK~1\AppData\Local\Temp\ccBm4keS.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_dcb94.exe C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. --whole-archive CMakeFiles\cmTC_dcb94.dir/objects.a --no-whole-archive --out-implib libcmTC_dcb94.dll.a --major-image-version 0 --minor-image-version 0 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o 68 | COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_dcb94.exe' '-mtune=core2' '-march=nocona' 69 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 70 | 71 | 72 | Parsed C implicit link information from above output: 73 | link line regex: [^( *|.*[/\])(ld\.exe|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] 74 | ignore line: [Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp] 75 | ignore line: [] 76 | ignore line: [Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_dcb94/fast"] 77 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_dcb94.dir\build.make CMakeFiles/cmTC_dcb94.dir/build] 78 | ignore line: [mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp'] 79 | ignore line: [Building C object CMakeFiles/cmTC_dcb94.dir/CMakeCCompilerABI.c.obj] 80 | ignore line: [C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_dcb94.dir\CMakeCCompilerABI.c.obj -c "C:\Program Files\CMake\share\cmake-3.11\Modules\CMakeCCompilerABI.c"] 81 | ignore line: [Linking C executable cmTC_dcb94.exe] 82 | ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_dcb94.dir\link.txt --verbose=1] 83 | ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_dcb94.dir/objects.a] 84 | ignore line: [C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_dcb94.dir/objects.a @CMakeFiles\cmTC_dcb94.dir\objects1.rsp] 85 | ignore line: [C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -v -Wl,--whole-archive CMakeFiles\cmTC_dcb94.dir/objects.a -Wl,--no-whole-archive -o cmTC_dcb94.exe -Wl,--out-implib,libcmTC_dcb94.dll.a -Wl,--major-image-version,0,--minor-image-version,0 ] 86 | ignore line: [Using built-in specs.] 87 | ignore line: [COLLECT_GCC=C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe] 88 | ignore line: [COLLECT_LTO_WRAPPER=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe] 89 | ignore line: [Target: x86_64-w64-mingw32] 90 | ignore line: [Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '] 91 | ignore line: [Thread model: posix] 92 | ignore line: [gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) ] 93 | ignore line: [COMPILER_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/] 94 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/] 95 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/] 96 | ignore line: [LIBRARY_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/] 97 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/] 98 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/] 99 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/] 100 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/] 101 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../] 102 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_dcb94.exe' '-mtune=core2' '-march=nocona'] 103 | link line: [ C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe -plugin C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\STAROK~1\AppData\Local\Temp\ccBm4keS.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_dcb94.exe C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. --whole-archive CMakeFiles\cmTC_dcb94.dir/objects.a --no-whole-archive --out-implib libcmTC_dcb94.dll.a --major-image-version 0 --minor-image-version 0 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o] 104 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe] ==> ignore 105 | arg [-plugin] ==> ignore 106 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll] ==> ignore 107 | arg [-plugin-opt=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe] ==> ignore 108 | arg [-plugin-opt=-fresolution=C:\Users\STAROK~1\AppData\Local\Temp\ccBm4keS.res] ==> ignore 109 | arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore 110 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 111 | arg [-plugin-opt=-pass-through=-lgcc_eh] ==> ignore 112 | arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore 113 | arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore 114 | arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore 115 | arg [-plugin-opt=-pass-through=-lpthread] ==> ignore 116 | arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore 117 | arg [-plugin-opt=-pass-through=-lshell32] ==> ignore 118 | arg [-plugin-opt=-pass-through=-luser32] ==> ignore 119 | arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore 120 | arg [-plugin-opt=-pass-through=-liconv] ==> ignore 121 | arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore 122 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 123 | arg [-plugin-opt=-pass-through=-lgcc_eh] ==> ignore 124 | arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore 125 | arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore 126 | arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore 127 | arg [--sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64] ==> ignore 128 | arg [-m] ==> ignore 129 | arg [i386pep] ==> ignore 130 | arg [-Bdynamic] ==> ignore 131 | arg [-o] ==> ignore 132 | arg [cmTC_dcb94.exe] ==> ignore 133 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o] ==> ignore 134 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o] ==> ignore 135 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] 136 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc] 137 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] 138 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] 139 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] 140 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] 141 | arg [--whole-archive] ==> ignore 142 | arg [CMakeFiles\cmTC_dcb94.dir/objects.a] ==> ignore 143 | arg [--no-whole-archive] ==> ignore 144 | arg [--out-implib] ==> ignore 145 | arg [libcmTC_dcb94.dll.a] ==> ignore 146 | arg [--major-image-version] ==> ignore 147 | arg [0] ==> ignore 148 | arg [--minor-image-version] ==> ignore 149 | arg [0] ==> ignore 150 | arg [-lmingw32] ==> lib [mingw32] 151 | arg [-lgcc] ==> lib [gcc] 152 | arg [-lgcc_eh] ==> lib [gcc_eh] 153 | arg [-lmoldname] ==> lib [moldname] 154 | arg [-lmingwex] ==> lib [mingwex] 155 | arg [-lmsvcrt] ==> lib [msvcrt] 156 | arg [-lpthread] ==> lib [pthread] 157 | arg [-ladvapi32] ==> lib [advapi32] 158 | arg [-lshell32] ==> lib [shell32] 159 | arg [-luser32] ==> lib [user32] 160 | arg [-lkernel32] ==> lib [kernel32] 161 | arg [-liconv] ==> lib [iconv] 162 | arg [-lmingw32] ==> lib [mingw32] 163 | arg [-lgcc] ==> lib [gcc] 164 | arg [-lgcc_eh] ==> lib [gcc_eh] 165 | arg [-lmoldname] ==> lib [moldname] 166 | arg [-lmingwex] ==> lib [mingwex] 167 | arg [-lmsvcrt] ==> lib [msvcrt] 168 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o] ==> ignore 169 | remove lib [gcc_eh] 170 | remove lib [msvcrt] 171 | remove lib [gcc_eh] 172 | remove lib [msvcrt] 173 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0] 174 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc] 175 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib] 176 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib] 177 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib] 178 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib] 179 | implicit libs: [mingw32;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc;moldname;mingwex] 180 | implicit dirs: [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib] 181 | implicit fwks: [] 182 | 183 | 184 | 185 | 186 | Detecting C [-std=c11] compiler features compiled with the following output: 187 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 188 | 189 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_2bd86/fast" 190 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_2bd86.dir\build.make CMakeFiles/cmTC_2bd86.dir/build 191 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 192 | Building C object CMakeFiles/cmTC_2bd86.dir/feature_tests.c.obj 193 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -std=c11 -o CMakeFiles\cmTC_2bd86.dir\feature_tests.c.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.c 194 | Linking C executable cmTC_2bd86.exe 195 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_2bd86.dir\link.txt --verbose=1 196 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_2bd86.dir/objects.a 197 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_2bd86.dir/objects.a @CMakeFiles\cmTC_2bd86.dir\objects1.rsp 198 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -Wl,--whole-archive CMakeFiles\cmTC_2bd86.dir/objects.a -Wl,--no-whole-archive -o cmTC_2bd86.exe -Wl,--out-implib,libcmTC_2bd86.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_2bd86.dir\linklibs.rsp 199 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 200 | 201 | 202 | Feature record: C_FEATURE:1c_function_prototypes 203 | Feature record: C_FEATURE:1c_restrict 204 | Feature record: C_FEATURE:1c_static_assert 205 | Feature record: C_FEATURE:1c_variadic_macros 206 | 207 | 208 | Detecting C [-std=c99] compiler features compiled with the following output: 209 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 210 | 211 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_45162/fast" 212 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_45162.dir\build.make CMakeFiles/cmTC_45162.dir/build 213 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 214 | Building C object CMakeFiles/cmTC_45162.dir/feature_tests.c.obj 215 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -std=c99 -o CMakeFiles\cmTC_45162.dir\feature_tests.c.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.c 216 | Linking C executable cmTC_45162.exe 217 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_45162.dir\link.txt --verbose=1 218 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_45162.dir/objects.a 219 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_45162.dir/objects.a @CMakeFiles\cmTC_45162.dir\objects1.rsp 220 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -Wl,--whole-archive CMakeFiles\cmTC_45162.dir/objects.a -Wl,--no-whole-archive -o cmTC_45162.exe -Wl,--out-implib,libcmTC_45162.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_45162.dir\linklibs.rsp 221 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 222 | 223 | 224 | Feature record: C_FEATURE:1c_function_prototypes 225 | Feature record: C_FEATURE:1c_restrict 226 | Feature record: C_FEATURE:0c_static_assert 227 | Feature record: C_FEATURE:1c_variadic_macros 228 | 229 | 230 | Detecting C [-std=c90] compiler features compiled with the following output: 231 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 232 | 233 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_b22a5/fast" 234 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_b22a5.dir\build.make CMakeFiles/cmTC_b22a5.dir/build 235 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 236 | Building C object CMakeFiles/cmTC_b22a5.dir/feature_tests.c.obj 237 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -std=c90 -o CMakeFiles\cmTC_b22a5.dir\feature_tests.c.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.c 238 | Linking C executable cmTC_b22a5.exe 239 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_b22a5.dir\link.txt --verbose=1 240 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_b22a5.dir/objects.a 241 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_b22a5.dir/objects.a @CMakeFiles\cmTC_b22a5.dir\objects1.rsp 242 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -Wl,--whole-archive CMakeFiles\cmTC_b22a5.dir/objects.a -Wl,--no-whole-archive -o cmTC_b22a5.exe -Wl,--out-implib,libcmTC_b22a5.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_b22a5.dir\linklibs.rsp 243 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 244 | 245 | 246 | Feature record: C_FEATURE:1c_function_prototypes 247 | Feature record: C_FEATURE:0c_restrict 248 | Feature record: C_FEATURE:0c_static_assert 249 | Feature record: C_FEATURE:0c_variadic_macros 250 | Determining if the CXX compiler works passed with the following output: 251 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 252 | 253 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_27b9b/fast" 254 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_27b9b.dir\build.make CMakeFiles/cmTC_27b9b.dir/build 255 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 256 | Building CXX object CMakeFiles/cmTC_27b9b.dir/testCXXCompiler.cxx.obj 257 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -o CMakeFiles\cmTC_27b9b.dir\testCXXCompiler.cxx.obj -c C:\my\source\example1\build_mingw\CMakeFiles\CMakeTmp\testCXXCompiler.cxx 258 | Linking CXX executable cmTC_27b9b.exe 259 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_27b9b.dir\link.txt --verbose=1 260 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_27b9b.dir/objects.a 261 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_27b9b.dir/objects.a @CMakeFiles\cmTC_27b9b.dir\objects1.rsp 262 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_27b9b.dir/objects.a -Wl,--no-whole-archive -o cmTC_27b9b.exe -Wl,--out-implib,libcmTC_27b9b.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_27b9b.dir\linklibs.rsp 263 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 264 | 265 | 266 | Detecting CXX compiler ABI info compiled with the following output: 267 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 268 | 269 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_be649/fast" 270 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_be649.dir\build.make CMakeFiles/cmTC_be649.dir/build 271 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 272 | Building CXX object CMakeFiles/cmTC_be649.dir/CMakeCXXCompilerABI.cpp.obj 273 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -o CMakeFiles\cmTC_be649.dir\CMakeCXXCompilerABI.cpp.obj -c "C:\Program Files\CMake\share\cmake-3.11\Modules\CMakeCXXCompilerABI.cpp" 274 | Linking CXX executable cmTC_be649.exe 275 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_be649.dir\link.txt --verbose=1 276 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_be649.dir/objects.a 277 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_be649.dir/objects.a @CMakeFiles\cmTC_be649.dir\objects1.rsp 278 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -v -Wl,--whole-archive CMakeFiles\cmTC_be649.dir/objects.a -Wl,--no-whole-archive -o cmTC_be649.exe -Wl,--out-implib,libcmTC_be649.dll.a -Wl,--major-image-version,0,--minor-image-version,0 279 | Using built-in specs. 280 | COLLECT_GCC=C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE 281 | COLLECT_LTO_WRAPPER=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe 282 | Target: x86_64-w64-mingw32 283 | Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib ' 284 | Thread model: posix 285 | gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 286 | COMPILER_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ 287 | LIBRARY_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/;C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../ 288 | COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_be649.exe' '-shared-libgcc' '-mtune=core2' '-march=nocona' 289 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe -plugin C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\STAROK~1\AppData\Local\Temp\ccyErTfb.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_be649.exe C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. --whole-archive CMakeFiles\cmTC_be649.dir/objects.a --no-whole-archive --out-implib libcmTC_be649.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o 290 | COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_be649.exe' '-shared-libgcc' '-mtune=core2' '-march=nocona' 291 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 292 | 293 | 294 | Parsed CXX implicit link information from above output: 295 | link line regex: [^( *|.*[/\])(ld\.exe|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] 296 | ignore line: [Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp] 297 | ignore line: [] 298 | ignore line: [Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_be649/fast"] 299 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_be649.dir\build.make CMakeFiles/cmTC_be649.dir/build] 300 | ignore line: [mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp'] 301 | ignore line: [Building CXX object CMakeFiles/cmTC_be649.dir/CMakeCXXCompilerABI.cpp.obj] 302 | ignore line: [C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -o CMakeFiles\cmTC_be649.dir\CMakeCXXCompilerABI.cpp.obj -c "C:\Program Files\CMake\share\cmake-3.11\Modules\CMakeCXXCompilerABI.cpp"] 303 | ignore line: [Linking CXX executable cmTC_be649.exe] 304 | ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_be649.dir\link.txt --verbose=1] 305 | ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_be649.dir/objects.a] 306 | ignore line: [C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_be649.dir/objects.a @CMakeFiles\cmTC_be649.dir\objects1.rsp] 307 | ignore line: [C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -v -Wl,--whole-archive CMakeFiles\cmTC_be649.dir/objects.a -Wl,--no-whole-archive -o cmTC_be649.exe -Wl,--out-implib,libcmTC_be649.dll.a -Wl,--major-image-version,0,--minor-image-version,0 ] 308 | ignore line: [Using built-in specs.] 309 | ignore line: [COLLECT_GCC=C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE] 310 | ignore line: [COLLECT_LTO_WRAPPER=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe] 311 | ignore line: [Target: x86_64-w64-mingw32] 312 | ignore line: [Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '] 313 | ignore line: [Thread model: posix] 314 | ignore line: [gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) ] 315 | ignore line: [COMPILER_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/] 316 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/] 317 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/] 318 | ignore line: [LIBRARY_PATH=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/] 319 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/] 320 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/] 321 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib/] 322 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/] 323 | ignore line: [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../] 324 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_be649.exe' '-shared-libgcc' '-mtune=core2' '-march=nocona'] 325 | link line: [ C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe -plugin C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll -plugin-opt=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\STAROK~1\AppData\Local\Temp\ccyErTfb.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-liconv -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt --sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 -m i386pep -Bdynamic -o cmTC_be649.exe C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0 -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib -LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../.. --whole-archive CMakeFiles\cmTC_be649.dir/objects.a --no-whole-archive --out-implib libcmTC_be649.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o] 326 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/collect2.exe] ==> ignore 327 | arg [-plugin] ==> ignore 328 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/liblto_plugin-0.dll] ==> ignore 329 | arg [-plugin-opt=C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe] ==> ignore 330 | arg [-plugin-opt=-fresolution=C:\Users\STAROK~1\AppData\Local\Temp\ccyErTfb.res] ==> ignore 331 | arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore 332 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore 333 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 334 | arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore 335 | arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore 336 | arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore 337 | arg [-plugin-opt=-pass-through=-lpthread] ==> ignore 338 | arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore 339 | arg [-plugin-opt=-pass-through=-lshell32] ==> ignore 340 | arg [-plugin-opt=-pass-through=-luser32] ==> ignore 341 | arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore 342 | arg [-plugin-opt=-pass-through=-liconv] ==> ignore 343 | arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore 344 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore 345 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 346 | arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore 347 | arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore 348 | arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore 349 | arg [--sysroot=C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64] ==> ignore 350 | arg [-m] ==> ignore 351 | arg [i386pep] ==> ignore 352 | arg [-Bdynamic] ==> ignore 353 | arg [-o] ==> ignore 354 | arg [cmTC_be649.exe] ==> ignore 355 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o] ==> ignore 356 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtbegin.o] ==> ignore 357 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] 358 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc] 359 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] 360 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] 361 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] 362 | arg [-LC:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] ==> dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] 363 | arg [--whole-archive] ==> ignore 364 | arg [CMakeFiles\cmTC_be649.dir/objects.a] ==> ignore 365 | arg [--no-whole-archive] ==> ignore 366 | arg [--out-implib] ==> ignore 367 | arg [libcmTC_be649.dll.a] ==> ignore 368 | arg [--major-image-version] ==> ignore 369 | arg [0] ==> ignore 370 | arg [--minor-image-version] ==> ignore 371 | arg [0] ==> ignore 372 | arg [-lstdc++] ==> lib [stdc++] 373 | arg [-lmingw32] ==> lib [mingw32] 374 | arg [-lgcc_s] ==> lib [gcc_s] 375 | arg [-lgcc] ==> lib [gcc] 376 | arg [-lmoldname] ==> lib [moldname] 377 | arg [-lmingwex] ==> lib [mingwex] 378 | arg [-lmsvcrt] ==> lib [msvcrt] 379 | arg [-lpthread] ==> lib [pthread] 380 | arg [-ladvapi32] ==> lib [advapi32] 381 | arg [-lshell32] ==> lib [shell32] 382 | arg [-luser32] ==> lib [user32] 383 | arg [-lkernel32] ==> lib [kernel32] 384 | arg [-liconv] ==> lib [iconv] 385 | arg [-lmingw32] ==> lib [mingw32] 386 | arg [-lgcc_s] ==> lib [gcc_s] 387 | arg [-lgcc] ==> lib [gcc] 388 | arg [-lmoldname] ==> lib [moldname] 389 | arg [-lmingwex] ==> lib [mingwex] 390 | arg [-lmsvcrt] ==> lib [msvcrt] 391 | arg [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/crtend.o] ==> ignore 392 | remove lib [msvcrt] 393 | remove lib [msvcrt] 394 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0] 395 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc] 396 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib] 397 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../lib] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib] 398 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib] 399 | collapse library dir [C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../..] ==> [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib] 400 | implicit libs: [stdc++;mingw32;gcc_s;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc_s;gcc;moldname;mingwex] 401 | implicit dirs: [C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/x86_64-w64-mingw32/lib;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib] 402 | implicit fwks: [] 403 | 404 | 405 | 406 | 407 | Detecting CXX [-std=c++1z] compiler features compiled with the following output: 408 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 409 | 410 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_a7e02/fast" 411 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_a7e02.dir\build.make CMakeFiles/cmTC_a7e02.dir/build 412 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 413 | Building CXX object CMakeFiles/cmTC_a7e02.dir/feature_tests.cxx.obj 414 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -std=c++1z -o CMakeFiles\cmTC_a7e02.dir\feature_tests.cxx.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.cxx 415 | Linking CXX executable cmTC_a7e02.exe 416 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_a7e02.dir\link.txt --verbose=1 417 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_a7e02.dir/objects.a 418 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_a7e02.dir/objects.a @CMakeFiles\cmTC_a7e02.dir\objects1.rsp 419 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_a7e02.dir/objects.a -Wl,--no-whole-archive -o cmTC_a7e02.exe -Wl,--out-implib,libcmTC_a7e02.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_a7e02.dir\linklibs.rsp 420 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 421 | 422 | 423 | Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers 424 | Feature record: CXX_FEATURE:1cxx_alias_templates 425 | Feature record: CXX_FEATURE:1cxx_alignas 426 | Feature record: CXX_FEATURE:1cxx_alignof 427 | Feature record: CXX_FEATURE:1cxx_attributes 428 | Feature record: CXX_FEATURE:1cxx_attribute_deprecated 429 | Feature record: CXX_FEATURE:1cxx_auto_type 430 | Feature record: CXX_FEATURE:1cxx_binary_literals 431 | Feature record: CXX_FEATURE:1cxx_constexpr 432 | Feature record: CXX_FEATURE:1cxx_contextual_conversions 433 | Feature record: CXX_FEATURE:1cxx_decltype 434 | Feature record: CXX_FEATURE:1cxx_decltype_auto 435 | Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types 436 | Feature record: CXX_FEATURE:1cxx_default_function_template_args 437 | Feature record: CXX_FEATURE:1cxx_defaulted_functions 438 | Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers 439 | Feature record: CXX_FEATURE:1cxx_delegating_constructors 440 | Feature record: CXX_FEATURE:1cxx_deleted_functions 441 | Feature record: CXX_FEATURE:1cxx_digit_separators 442 | Feature record: CXX_FEATURE:1cxx_enum_forward_declarations 443 | Feature record: CXX_FEATURE:1cxx_explicit_conversions 444 | Feature record: CXX_FEATURE:1cxx_extended_friend_declarations 445 | Feature record: CXX_FEATURE:1cxx_extern_templates 446 | Feature record: CXX_FEATURE:1cxx_final 447 | Feature record: CXX_FEATURE:1cxx_func_identifier 448 | Feature record: CXX_FEATURE:1cxx_generalized_initializers 449 | Feature record: CXX_FEATURE:1cxx_generic_lambdas 450 | Feature record: CXX_FEATURE:1cxx_inheriting_constructors 451 | Feature record: CXX_FEATURE:1cxx_inline_namespaces 452 | Feature record: CXX_FEATURE:1cxx_lambdas 453 | Feature record: CXX_FEATURE:1cxx_lambda_init_captures 454 | Feature record: CXX_FEATURE:1cxx_local_type_template_args 455 | Feature record: CXX_FEATURE:1cxx_long_long_type 456 | Feature record: CXX_FEATURE:1cxx_noexcept 457 | Feature record: CXX_FEATURE:1cxx_nonstatic_member_init 458 | Feature record: CXX_FEATURE:1cxx_nullptr 459 | Feature record: CXX_FEATURE:1cxx_override 460 | Feature record: CXX_FEATURE:1cxx_range_for 461 | Feature record: CXX_FEATURE:1cxx_raw_string_literals 462 | Feature record: CXX_FEATURE:1cxx_reference_qualified_functions 463 | Feature record: CXX_FEATURE:1cxx_relaxed_constexpr 464 | Feature record: CXX_FEATURE:1cxx_return_type_deduction 465 | Feature record: CXX_FEATURE:1cxx_right_angle_brackets 466 | Feature record: CXX_FEATURE:1cxx_rvalue_references 467 | Feature record: CXX_FEATURE:1cxx_sizeof_member 468 | Feature record: CXX_FEATURE:1cxx_static_assert 469 | Feature record: CXX_FEATURE:1cxx_strong_enums 470 | Feature record: CXX_FEATURE:1cxx_template_template_parameters 471 | Feature record: CXX_FEATURE:1cxx_thread_local 472 | Feature record: CXX_FEATURE:1cxx_trailing_return_types 473 | Feature record: CXX_FEATURE:1cxx_unicode_literals 474 | Feature record: CXX_FEATURE:1cxx_uniform_initialization 475 | Feature record: CXX_FEATURE:1cxx_unrestricted_unions 476 | Feature record: CXX_FEATURE:1cxx_user_literals 477 | Feature record: CXX_FEATURE:1cxx_variable_templates 478 | Feature record: CXX_FEATURE:1cxx_variadic_macros 479 | Feature record: CXX_FEATURE:1cxx_variadic_templates 480 | 481 | 482 | Detecting CXX [-std=c++14] compiler features compiled with the following output: 483 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 484 | 485 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_53509/fast" 486 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_53509.dir\build.make CMakeFiles/cmTC_53509.dir/build 487 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 488 | Building CXX object CMakeFiles/cmTC_53509.dir/feature_tests.cxx.obj 489 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -std=c++14 -o CMakeFiles\cmTC_53509.dir\feature_tests.cxx.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.cxx 490 | Linking CXX executable cmTC_53509.exe 491 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_53509.dir\link.txt --verbose=1 492 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_53509.dir/objects.a 493 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_53509.dir/objects.a @CMakeFiles\cmTC_53509.dir\objects1.rsp 494 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_53509.dir/objects.a -Wl,--no-whole-archive -o cmTC_53509.exe -Wl,--out-implib,libcmTC_53509.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_53509.dir\linklibs.rsp 495 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 496 | 497 | 498 | Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers 499 | Feature record: CXX_FEATURE:1cxx_alias_templates 500 | Feature record: CXX_FEATURE:1cxx_alignas 501 | Feature record: CXX_FEATURE:1cxx_alignof 502 | Feature record: CXX_FEATURE:1cxx_attributes 503 | Feature record: CXX_FEATURE:1cxx_attribute_deprecated 504 | Feature record: CXX_FEATURE:1cxx_auto_type 505 | Feature record: CXX_FEATURE:1cxx_binary_literals 506 | Feature record: CXX_FEATURE:1cxx_constexpr 507 | Feature record: CXX_FEATURE:1cxx_contextual_conversions 508 | Feature record: CXX_FEATURE:1cxx_decltype 509 | Feature record: CXX_FEATURE:1cxx_decltype_auto 510 | Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types 511 | Feature record: CXX_FEATURE:1cxx_default_function_template_args 512 | Feature record: CXX_FEATURE:1cxx_defaulted_functions 513 | Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers 514 | Feature record: CXX_FEATURE:1cxx_delegating_constructors 515 | Feature record: CXX_FEATURE:1cxx_deleted_functions 516 | Feature record: CXX_FEATURE:1cxx_digit_separators 517 | Feature record: CXX_FEATURE:1cxx_enum_forward_declarations 518 | Feature record: CXX_FEATURE:1cxx_explicit_conversions 519 | Feature record: CXX_FEATURE:1cxx_extended_friend_declarations 520 | Feature record: CXX_FEATURE:1cxx_extern_templates 521 | Feature record: CXX_FEATURE:1cxx_final 522 | Feature record: CXX_FEATURE:1cxx_func_identifier 523 | Feature record: CXX_FEATURE:1cxx_generalized_initializers 524 | Feature record: CXX_FEATURE:1cxx_generic_lambdas 525 | Feature record: CXX_FEATURE:1cxx_inheriting_constructors 526 | Feature record: CXX_FEATURE:1cxx_inline_namespaces 527 | Feature record: CXX_FEATURE:1cxx_lambdas 528 | Feature record: CXX_FEATURE:1cxx_lambda_init_captures 529 | Feature record: CXX_FEATURE:1cxx_local_type_template_args 530 | Feature record: CXX_FEATURE:1cxx_long_long_type 531 | Feature record: CXX_FEATURE:1cxx_noexcept 532 | Feature record: CXX_FEATURE:1cxx_nonstatic_member_init 533 | Feature record: CXX_FEATURE:1cxx_nullptr 534 | Feature record: CXX_FEATURE:1cxx_override 535 | Feature record: CXX_FEATURE:1cxx_range_for 536 | Feature record: CXX_FEATURE:1cxx_raw_string_literals 537 | Feature record: CXX_FEATURE:1cxx_reference_qualified_functions 538 | Feature record: CXX_FEATURE:1cxx_relaxed_constexpr 539 | Feature record: CXX_FEATURE:1cxx_return_type_deduction 540 | Feature record: CXX_FEATURE:1cxx_right_angle_brackets 541 | Feature record: CXX_FEATURE:1cxx_rvalue_references 542 | Feature record: CXX_FEATURE:1cxx_sizeof_member 543 | Feature record: CXX_FEATURE:1cxx_static_assert 544 | Feature record: CXX_FEATURE:1cxx_strong_enums 545 | Feature record: CXX_FEATURE:1cxx_template_template_parameters 546 | Feature record: CXX_FEATURE:1cxx_thread_local 547 | Feature record: CXX_FEATURE:1cxx_trailing_return_types 548 | Feature record: CXX_FEATURE:1cxx_unicode_literals 549 | Feature record: CXX_FEATURE:1cxx_uniform_initialization 550 | Feature record: CXX_FEATURE:1cxx_unrestricted_unions 551 | Feature record: CXX_FEATURE:1cxx_user_literals 552 | Feature record: CXX_FEATURE:1cxx_variable_templates 553 | Feature record: CXX_FEATURE:1cxx_variadic_macros 554 | Feature record: CXX_FEATURE:1cxx_variadic_templates 555 | 556 | 557 | Detecting CXX [-std=c++11] compiler features compiled with the following output: 558 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 559 | 560 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_42c3c/fast" 561 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_42c3c.dir\build.make CMakeFiles/cmTC_42c3c.dir/build 562 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 563 | Building CXX object CMakeFiles/cmTC_42c3c.dir/feature_tests.cxx.obj 564 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -std=c++11 -o CMakeFiles\cmTC_42c3c.dir\feature_tests.cxx.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.cxx 565 | Linking CXX executable cmTC_42c3c.exe 566 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_42c3c.dir\link.txt --verbose=1 567 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_42c3c.dir/objects.a 568 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_42c3c.dir/objects.a @CMakeFiles\cmTC_42c3c.dir\objects1.rsp 569 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_42c3c.dir/objects.a -Wl,--no-whole-archive -o cmTC_42c3c.exe -Wl,--out-implib,libcmTC_42c3c.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_42c3c.dir\linklibs.rsp 570 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 571 | 572 | 573 | Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers 574 | Feature record: CXX_FEATURE:1cxx_alias_templates 575 | Feature record: CXX_FEATURE:1cxx_alignas 576 | Feature record: CXX_FEATURE:1cxx_alignof 577 | Feature record: CXX_FEATURE:1cxx_attributes 578 | Feature record: CXX_FEATURE:0cxx_attribute_deprecated 579 | Feature record: CXX_FEATURE:1cxx_auto_type 580 | Feature record: CXX_FEATURE:0cxx_binary_literals 581 | Feature record: CXX_FEATURE:1cxx_constexpr 582 | Feature record: CXX_FEATURE:0cxx_contextual_conversions 583 | Feature record: CXX_FEATURE:1cxx_decltype 584 | Feature record: CXX_FEATURE:0cxx_decltype_auto 585 | Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types 586 | Feature record: CXX_FEATURE:1cxx_default_function_template_args 587 | Feature record: CXX_FEATURE:1cxx_defaulted_functions 588 | Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers 589 | Feature record: CXX_FEATURE:1cxx_delegating_constructors 590 | Feature record: CXX_FEATURE:1cxx_deleted_functions 591 | Feature record: CXX_FEATURE:0cxx_digit_separators 592 | Feature record: CXX_FEATURE:1cxx_enum_forward_declarations 593 | Feature record: CXX_FEATURE:1cxx_explicit_conversions 594 | Feature record: CXX_FEATURE:1cxx_extended_friend_declarations 595 | Feature record: CXX_FEATURE:1cxx_extern_templates 596 | Feature record: CXX_FEATURE:1cxx_final 597 | Feature record: CXX_FEATURE:1cxx_func_identifier 598 | Feature record: CXX_FEATURE:1cxx_generalized_initializers 599 | Feature record: CXX_FEATURE:0cxx_generic_lambdas 600 | Feature record: CXX_FEATURE:1cxx_inheriting_constructors 601 | Feature record: CXX_FEATURE:1cxx_inline_namespaces 602 | Feature record: CXX_FEATURE:1cxx_lambdas 603 | Feature record: CXX_FEATURE:0cxx_lambda_init_captures 604 | Feature record: CXX_FEATURE:1cxx_local_type_template_args 605 | Feature record: CXX_FEATURE:1cxx_long_long_type 606 | Feature record: CXX_FEATURE:1cxx_noexcept 607 | Feature record: CXX_FEATURE:1cxx_nonstatic_member_init 608 | Feature record: CXX_FEATURE:1cxx_nullptr 609 | Feature record: CXX_FEATURE:1cxx_override 610 | Feature record: CXX_FEATURE:1cxx_range_for 611 | Feature record: CXX_FEATURE:1cxx_raw_string_literals 612 | Feature record: CXX_FEATURE:1cxx_reference_qualified_functions 613 | Feature record: CXX_FEATURE:0cxx_relaxed_constexpr 614 | Feature record: CXX_FEATURE:0cxx_return_type_deduction 615 | Feature record: CXX_FEATURE:1cxx_right_angle_brackets 616 | Feature record: CXX_FEATURE:1cxx_rvalue_references 617 | Feature record: CXX_FEATURE:1cxx_sizeof_member 618 | Feature record: CXX_FEATURE:1cxx_static_assert 619 | Feature record: CXX_FEATURE:1cxx_strong_enums 620 | Feature record: CXX_FEATURE:1cxx_template_template_parameters 621 | Feature record: CXX_FEATURE:1cxx_thread_local 622 | Feature record: CXX_FEATURE:1cxx_trailing_return_types 623 | Feature record: CXX_FEATURE:1cxx_unicode_literals 624 | Feature record: CXX_FEATURE:1cxx_uniform_initialization 625 | Feature record: CXX_FEATURE:1cxx_unrestricted_unions 626 | Feature record: CXX_FEATURE:1cxx_user_literals 627 | Feature record: CXX_FEATURE:0cxx_variable_templates 628 | Feature record: CXX_FEATURE:1cxx_variadic_macros 629 | Feature record: CXX_FEATURE:1cxx_variadic_templates 630 | 631 | 632 | Detecting CXX [-std=c++98] compiler features compiled with the following output: 633 | Change Dir: C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp 634 | 635 | Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe" "cmTC_9db96/fast" 636 | C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_9db96.dir\build.make CMakeFiles/cmTC_9db96.dir/build 637 | mingw32-make.exe[1]: Entering directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 638 | Building CXX object CMakeFiles/cmTC_9db96.dir/feature_tests.cxx.obj 639 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -std=c++98 -o CMakeFiles\cmTC_9db96.dir\feature_tests.cxx.obj -c C:\my\source\example1\build_mingw\CMakeFiles\feature_tests.cxx 640 | Linking CXX executable cmTC_9db96.exe 641 | "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_9db96.dir\link.txt --verbose=1 642 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\cmTC_9db96.dir/objects.a 643 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\cmTC_9db96.dir/objects.a @CMakeFiles\cmTC_9db96.dir\objects1.rsp 644 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_9db96.dir/objects.a -Wl,--no-whole-archive -o cmTC_9db96.exe -Wl,--out-implib,libcmTC_9db96.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_9db96.dir\linklibs.rsp 645 | mingw32-make.exe[1]: Leaving directory 'C:/my/source/example1/build_mingw/CMakeFiles/CMakeTmp' 646 | 647 | 648 | Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers 649 | Feature record: CXX_FEATURE:0cxx_alias_templates 650 | Feature record: CXX_FEATURE:0cxx_alignas 651 | Feature record: CXX_FEATURE:0cxx_alignof 652 | Feature record: CXX_FEATURE:0cxx_attributes 653 | Feature record: CXX_FEATURE:0cxx_attribute_deprecated 654 | Feature record: CXX_FEATURE:0cxx_auto_type 655 | Feature record: CXX_FEATURE:0cxx_binary_literals 656 | Feature record: CXX_FEATURE:0cxx_constexpr 657 | Feature record: CXX_FEATURE:0cxx_contextual_conversions 658 | Feature record: CXX_FEATURE:0cxx_decltype 659 | Feature record: CXX_FEATURE:0cxx_decltype_auto 660 | Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types 661 | Feature record: CXX_FEATURE:0cxx_default_function_template_args 662 | Feature record: CXX_FEATURE:0cxx_defaulted_functions 663 | Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers 664 | Feature record: CXX_FEATURE:0cxx_delegating_constructors 665 | Feature record: CXX_FEATURE:0cxx_deleted_functions 666 | Feature record: CXX_FEATURE:0cxx_digit_separators 667 | Feature record: CXX_FEATURE:0cxx_enum_forward_declarations 668 | Feature record: CXX_FEATURE:0cxx_explicit_conversions 669 | Feature record: CXX_FEATURE:0cxx_extended_friend_declarations 670 | Feature record: CXX_FEATURE:0cxx_extern_templates 671 | Feature record: CXX_FEATURE:0cxx_final 672 | Feature record: CXX_FEATURE:0cxx_func_identifier 673 | Feature record: CXX_FEATURE:0cxx_generalized_initializers 674 | Feature record: CXX_FEATURE:0cxx_generic_lambdas 675 | Feature record: CXX_FEATURE:0cxx_inheriting_constructors 676 | Feature record: CXX_FEATURE:0cxx_inline_namespaces 677 | Feature record: CXX_FEATURE:0cxx_lambdas 678 | Feature record: CXX_FEATURE:0cxx_lambda_init_captures 679 | Feature record: CXX_FEATURE:0cxx_local_type_template_args 680 | Feature record: CXX_FEATURE:0cxx_long_long_type 681 | Feature record: CXX_FEATURE:0cxx_noexcept 682 | Feature record: CXX_FEATURE:0cxx_nonstatic_member_init 683 | Feature record: CXX_FEATURE:0cxx_nullptr 684 | Feature record: CXX_FEATURE:0cxx_override 685 | Feature record: CXX_FEATURE:0cxx_range_for 686 | Feature record: CXX_FEATURE:0cxx_raw_string_literals 687 | Feature record: CXX_FEATURE:0cxx_reference_qualified_functions 688 | Feature record: CXX_FEATURE:0cxx_relaxed_constexpr 689 | Feature record: CXX_FEATURE:0cxx_return_type_deduction 690 | Feature record: CXX_FEATURE:0cxx_right_angle_brackets 691 | Feature record: CXX_FEATURE:0cxx_rvalue_references 692 | Feature record: CXX_FEATURE:0cxx_sizeof_member 693 | Feature record: CXX_FEATURE:0cxx_static_assert 694 | Feature record: CXX_FEATURE:0cxx_strong_enums 695 | Feature record: CXX_FEATURE:1cxx_template_template_parameters 696 | Feature record: CXX_FEATURE:0cxx_thread_local 697 | Feature record: CXX_FEATURE:0cxx_trailing_return_types 698 | Feature record: CXX_FEATURE:0cxx_unicode_literals 699 | Feature record: CXX_FEATURE:0cxx_uniform_initialization 700 | Feature record: CXX_FEATURE:0cxx_unrestricted_unions 701 | Feature record: CXX_FEATURE:0cxx_user_literals 702 | Feature record: CXX_FEATURE:0cxx_variable_templates 703 | Feature record: CXX_FEATURE:0cxx_variadic_macros 704 | Feature record: CXX_FEATURE:0cxx_variadic_templates 705 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "MinGW Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeCInformation.cmake" 11 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeCXXInformation.cmake" 12 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeCommonLanguageInclude.cmake" 13 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeGenericSystem.cmake" 14 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeInitializeConfigs.cmake" 15 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeLanguageInformation.cmake" 16 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeRCInformation.cmake" 17 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeSystemSpecificInformation.cmake" 18 | "C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeSystemSpecificInitialize.cmake" 19 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 20 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Compiler/GNU-C.cmake" 21 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Compiler/GNU-CXX.cmake" 22 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Compiler/GNU.cmake" 23 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows-GNU-C-ABI.cmake" 24 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows-GNU-C.cmake" 25 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows-GNU-CXX-ABI.cmake" 26 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows-GNU-CXX.cmake" 27 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows-GNU.cmake" 28 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows-windres.cmake" 29 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/Windows.cmake" 30 | "C:/Program Files/CMake/share/cmake-3.11/Modules/Platform/WindowsPaths.cmake" 31 | "../CMakeLists.txt" 32 | "CMakeFiles/3.11.0/CMakeCCompiler.cmake" 33 | "CMakeFiles/3.11.0/CMakeCXXCompiler.cmake" 34 | "CMakeFiles/3.11.0/CMakeRCCompiler.cmake" 35 | "CMakeFiles/3.11.0/CMakeSystem.cmake" 36 | ) 37 | 38 | # The corresponding makefile is: 39 | set(CMAKE_MAKEFILE_OUTPUTS 40 | "Makefile" 41 | "CMakeFiles/cmake.check_cache" 42 | ) 43 | 44 | # Byproducts of CMake generate step: 45 | set(CMAKE_MAKEFILE_PRODUCTS 46 | "CMakeFiles/CMakeDirectoryInformation.cmake" 47 | ) 48 | 49 | # Dependency information for all targets: 50 | set(CMAKE_DEPEND_INFO_FILES 51 | "CMakeFiles/helloWorld.dir/DependInfo.cmake" 52 | ) 53 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # The main recursive all target 10 | all: 11 | 12 | .PHONY : all 13 | 14 | # The main recursive preinstall target 15 | preinstall: 16 | 17 | .PHONY : preinstall 18 | 19 | #============================================================================= 20 | # Special targets provided by cmake. 21 | 22 | # Disable implicit rules so canonical targets will work. 23 | .SUFFIXES: 24 | 25 | 26 | # Remove some rules from gmake that .SUFFIXES does not remove. 27 | SUFFIXES = 28 | 29 | .SUFFIXES: .hpux_make_needs_suffix_list 30 | 31 | 32 | # Suppress display of executed commands. 33 | $(VERBOSE).SILENT: 34 | 35 | 36 | # A target that is always out of date. 37 | cmake_force: 38 | 39 | .PHONY : cmake_force 40 | 41 | #============================================================================= 42 | # Set environment variables for the build. 43 | 44 | SHELL = cmd.exe 45 | 46 | # The CMake executable. 47 | CMAKE_COMMAND = "C:\Program Files\CMake\bin\cmake.exe" 48 | 49 | # The command to remove a file. 50 | RM = "C:\Program Files\CMake\bin\cmake.exe" -E remove -f 51 | 52 | # Escaping for special characters. 53 | EQUALS = = 54 | 55 | # The top-level source directory on which CMake was run. 56 | CMAKE_SOURCE_DIR = C:\my\source\example1 57 | 58 | # The top-level build directory on which CMake was run. 59 | CMAKE_BINARY_DIR = C:\my\source\example1\build_mingw 60 | 61 | #============================================================================= 62 | # Target rules for target CMakeFiles/helloWorld.dir 63 | 64 | # All Build rule for target. 65 | CMakeFiles/helloWorld.dir/all: 66 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/depend 67 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/build 68 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=C:\my\source\example1\build_mingw\CMakeFiles --progress-num=1,2 "Built target helloWorld" 69 | .PHONY : CMakeFiles/helloWorld.dir/all 70 | 71 | # Include target in all. 72 | all: CMakeFiles/helloWorld.dir/all 73 | 74 | .PHONY : all 75 | 76 | # Build rule for subdir invocation for target. 77 | CMakeFiles/helloWorld.dir/rule: cmake_check_build_system 78 | $(CMAKE_COMMAND) -E cmake_progress_start C:\my\source\example1\build_mingw\CMakeFiles 2 79 | $(MAKE) -f CMakeFiles\Makefile2 CMakeFiles/helloWorld.dir/all 80 | $(CMAKE_COMMAND) -E cmake_progress_start C:\my\source\example1\build_mingw\CMakeFiles 0 81 | .PHONY : CMakeFiles/helloWorld.dir/rule 82 | 83 | # Convenience name for target. 84 | helloWorld: CMakeFiles/helloWorld.dir/rule 85 | 86 | .PHONY : helloWorld 87 | 88 | # clean rule for target. 89 | CMakeFiles/helloWorld.dir/clean: 90 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/clean 91 | .PHONY : CMakeFiles/helloWorld.dir/clean 92 | 93 | # clean rule for target. 94 | clean: CMakeFiles/helloWorld.dir/clean 95 | 96 | .PHONY : clean 97 | 98 | #============================================================================= 99 | # Special targets to cleanup operation of make. 100 | 101 | # Special rule to run CMake to check the build system integrity. 102 | # No rule that depends on this can have commands that come from listfiles 103 | # because they might be regenerated. 104 | cmake_check_build_system: 105 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 0 106 | .PHONY : cmake_check_build_system 107 | 108 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | C:/my/source/example1/build_mingw/CMakeFiles/helloWorld.dir 2 | C:/my/source/example1/build_mingw/CMakeFiles/edit_cache.dir 3 | C:/my/source/example1/build_mingw/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/feature_tests.c: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "C_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "c_function_prototypes\n" 10 | "C_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "c_restrict\n" 17 | "C_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "c_static_assert\n" 24 | "C_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "c_variadic_macros\n" 31 | 32 | }; 33 | 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 35 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/feature_tests.cxx: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "CXX_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "cxx_aggregate_default_initializers\n" 10 | "CXX_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "cxx_alias_templates\n" 17 | "CXX_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "cxx_alignas\n" 24 | "CXX_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "cxx_alignof\n" 31 | "CXX_FEATURE:" 32 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 33 | "1" 34 | #else 35 | "0" 36 | #endif 37 | "cxx_attributes\n" 38 | "CXX_FEATURE:" 39 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 40 | "1" 41 | #else 42 | "0" 43 | #endif 44 | "cxx_attribute_deprecated\n" 45 | "CXX_FEATURE:" 46 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 47 | "1" 48 | #else 49 | "0" 50 | #endif 51 | "cxx_auto_type\n" 52 | "CXX_FEATURE:" 53 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 54 | "1" 55 | #else 56 | "0" 57 | #endif 58 | "cxx_binary_literals\n" 59 | "CXX_FEATURE:" 60 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 61 | "1" 62 | #else 63 | "0" 64 | #endif 65 | "cxx_constexpr\n" 66 | "CXX_FEATURE:" 67 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 68 | "1" 69 | #else 70 | "0" 71 | #endif 72 | "cxx_contextual_conversions\n" 73 | "CXX_FEATURE:" 74 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 75 | "1" 76 | #else 77 | "0" 78 | #endif 79 | "cxx_decltype\n" 80 | "CXX_FEATURE:" 81 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 82 | "1" 83 | #else 84 | "0" 85 | #endif 86 | "cxx_decltype_auto\n" 87 | "CXX_FEATURE:" 88 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 89 | "1" 90 | #else 91 | "0" 92 | #endif 93 | "cxx_decltype_incomplete_return_types\n" 94 | "CXX_FEATURE:" 95 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 96 | "1" 97 | #else 98 | "0" 99 | #endif 100 | "cxx_default_function_template_args\n" 101 | "CXX_FEATURE:" 102 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 103 | "1" 104 | #else 105 | "0" 106 | #endif 107 | "cxx_defaulted_functions\n" 108 | "CXX_FEATURE:" 109 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 110 | "1" 111 | #else 112 | "0" 113 | #endif 114 | "cxx_defaulted_move_initializers\n" 115 | "CXX_FEATURE:" 116 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 117 | "1" 118 | #else 119 | "0" 120 | #endif 121 | "cxx_delegating_constructors\n" 122 | "CXX_FEATURE:" 123 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 124 | "1" 125 | #else 126 | "0" 127 | #endif 128 | "cxx_deleted_functions\n" 129 | "CXX_FEATURE:" 130 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 131 | "1" 132 | #else 133 | "0" 134 | #endif 135 | "cxx_digit_separators\n" 136 | "CXX_FEATURE:" 137 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 138 | "1" 139 | #else 140 | "0" 141 | #endif 142 | "cxx_enum_forward_declarations\n" 143 | "CXX_FEATURE:" 144 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 145 | "1" 146 | #else 147 | "0" 148 | #endif 149 | "cxx_explicit_conversions\n" 150 | "CXX_FEATURE:" 151 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 152 | "1" 153 | #else 154 | "0" 155 | #endif 156 | "cxx_extended_friend_declarations\n" 157 | "CXX_FEATURE:" 158 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 159 | "1" 160 | #else 161 | "0" 162 | #endif 163 | "cxx_extern_templates\n" 164 | "CXX_FEATURE:" 165 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 166 | "1" 167 | #else 168 | "0" 169 | #endif 170 | "cxx_final\n" 171 | "CXX_FEATURE:" 172 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 173 | "1" 174 | #else 175 | "0" 176 | #endif 177 | "cxx_func_identifier\n" 178 | "CXX_FEATURE:" 179 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 180 | "1" 181 | #else 182 | "0" 183 | #endif 184 | "cxx_generalized_initializers\n" 185 | "CXX_FEATURE:" 186 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 187 | "1" 188 | #else 189 | "0" 190 | #endif 191 | "cxx_generic_lambdas\n" 192 | "CXX_FEATURE:" 193 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 194 | "1" 195 | #else 196 | "0" 197 | #endif 198 | "cxx_inheriting_constructors\n" 199 | "CXX_FEATURE:" 200 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 201 | "1" 202 | #else 203 | "0" 204 | #endif 205 | "cxx_inline_namespaces\n" 206 | "CXX_FEATURE:" 207 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 208 | "1" 209 | #else 210 | "0" 211 | #endif 212 | "cxx_lambdas\n" 213 | "CXX_FEATURE:" 214 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 215 | "1" 216 | #else 217 | "0" 218 | #endif 219 | "cxx_lambda_init_captures\n" 220 | "CXX_FEATURE:" 221 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 222 | "1" 223 | #else 224 | "0" 225 | #endif 226 | "cxx_local_type_template_args\n" 227 | "CXX_FEATURE:" 228 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 229 | "1" 230 | #else 231 | "0" 232 | #endif 233 | "cxx_long_long_type\n" 234 | "CXX_FEATURE:" 235 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 236 | "1" 237 | #else 238 | "0" 239 | #endif 240 | "cxx_noexcept\n" 241 | "CXX_FEATURE:" 242 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 243 | "1" 244 | #else 245 | "0" 246 | #endif 247 | "cxx_nonstatic_member_init\n" 248 | "CXX_FEATURE:" 249 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 250 | "1" 251 | #else 252 | "0" 253 | #endif 254 | "cxx_nullptr\n" 255 | "CXX_FEATURE:" 256 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 257 | "1" 258 | #else 259 | "0" 260 | #endif 261 | "cxx_override\n" 262 | "CXX_FEATURE:" 263 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 264 | "1" 265 | #else 266 | "0" 267 | #endif 268 | "cxx_range_for\n" 269 | "CXX_FEATURE:" 270 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 271 | "1" 272 | #else 273 | "0" 274 | #endif 275 | "cxx_raw_string_literals\n" 276 | "CXX_FEATURE:" 277 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 278 | "1" 279 | #else 280 | "0" 281 | #endif 282 | "cxx_reference_qualified_functions\n" 283 | "CXX_FEATURE:" 284 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 285 | "1" 286 | #else 287 | "0" 288 | #endif 289 | "cxx_relaxed_constexpr\n" 290 | "CXX_FEATURE:" 291 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 292 | "1" 293 | #else 294 | "0" 295 | #endif 296 | "cxx_return_type_deduction\n" 297 | "CXX_FEATURE:" 298 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 299 | "1" 300 | #else 301 | "0" 302 | #endif 303 | "cxx_right_angle_brackets\n" 304 | "CXX_FEATURE:" 305 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 306 | "1" 307 | #else 308 | "0" 309 | #endif 310 | "cxx_rvalue_references\n" 311 | "CXX_FEATURE:" 312 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 313 | "1" 314 | #else 315 | "0" 316 | #endif 317 | "cxx_sizeof_member\n" 318 | "CXX_FEATURE:" 319 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 320 | "1" 321 | #else 322 | "0" 323 | #endif 324 | "cxx_static_assert\n" 325 | "CXX_FEATURE:" 326 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 327 | "1" 328 | #else 329 | "0" 330 | #endif 331 | "cxx_strong_enums\n" 332 | "CXX_FEATURE:" 333 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus 334 | "1" 335 | #else 336 | "0" 337 | #endif 338 | "cxx_template_template_parameters\n" 339 | "CXX_FEATURE:" 340 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 341 | "1" 342 | #else 343 | "0" 344 | #endif 345 | "cxx_thread_local\n" 346 | "CXX_FEATURE:" 347 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 348 | "1" 349 | #else 350 | "0" 351 | #endif 352 | "cxx_trailing_return_types\n" 353 | "CXX_FEATURE:" 354 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 355 | "1" 356 | #else 357 | "0" 358 | #endif 359 | "cxx_unicode_literals\n" 360 | "CXX_FEATURE:" 361 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 362 | "1" 363 | #else 364 | "0" 365 | #endif 366 | "cxx_uniform_initialization\n" 367 | "CXX_FEATURE:" 368 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 369 | "1" 370 | #else 371 | "0" 372 | #endif 373 | "cxx_unrestricted_unions\n" 374 | "CXX_FEATURE:" 375 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 376 | "1" 377 | #else 378 | "0" 379 | #endif 380 | "cxx_user_literals\n" 381 | "CXX_FEATURE:" 382 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 383 | "1" 384 | #else 385 | "0" 386 | #endif 387 | "cxx_variable_templates\n" 388 | "CXX_FEATURE:" 389 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 390 | "1" 391 | #else 392 | "0" 393 | #endif 394 | "cxx_variadic_macros\n" 395 | "CXX_FEATURE:" 396 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 397 | "1" 398 | #else 399 | "0" 400 | #endif 401 | "cxx_variadic_templates\n" 402 | 403 | }; 404 | 405 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 406 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | C:/my/source/example1/main.cpp 10 | iostream 11 | - 12 | 13 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "C:/my/source/example1/main.cpp" "C:/my/source/example1/build_mingw/CMakeFiles/helloWorld.dir/main.cpp.obj" 8 | ) 9 | set(CMAKE_CXX_COMPILER_ID "GNU") 10 | 11 | # The include file search paths: 12 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 13 | ) 14 | 15 | # Targets to which this target links. 16 | set(CMAKE_TARGET_LINKED_INFO_FILES 17 | ) 18 | 19 | # Fortran module output directory. 20 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 21 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/build.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | # Delete rule output on recipe failure. 5 | .DELETE_ON_ERROR: 6 | 7 | 8 | #============================================================================= 9 | # Special targets provided by cmake. 10 | 11 | # Disable implicit rules so canonical targets will work. 12 | .SUFFIXES: 13 | 14 | 15 | # Remove some rules from gmake that .SUFFIXES does not remove. 16 | SUFFIXES = 17 | 18 | .SUFFIXES: .hpux_make_needs_suffix_list 19 | 20 | 21 | # Suppress display of executed commands. 22 | $(VERBOSE).SILENT: 23 | 24 | 25 | # A target that is always out of date. 26 | cmake_force: 27 | 28 | .PHONY : cmake_force 29 | 30 | #============================================================================= 31 | # Set environment variables for the build. 32 | 33 | SHELL = cmd.exe 34 | 35 | # The CMake executable. 36 | CMAKE_COMMAND = "C:\Program Files\CMake\bin\cmake.exe" 37 | 38 | # The command to remove a file. 39 | RM = "C:\Program Files\CMake\bin\cmake.exe" -E remove -f 40 | 41 | # Escaping for special characters. 42 | EQUALS = = 43 | 44 | # The top-level source directory on which CMake was run. 45 | CMAKE_SOURCE_DIR = C:\my\source\example1 46 | 47 | # The top-level build directory on which CMake was run. 48 | CMAKE_BINARY_DIR = C:\my\source\example1\build_mingw 49 | 50 | # Include any dependencies generated for this target. 51 | include CMakeFiles/helloWorld.dir/depend.make 52 | 53 | # Include the progress variables for this target. 54 | include CMakeFiles/helloWorld.dir/progress.make 55 | 56 | # Include the compile flags for this target's objects. 57 | include CMakeFiles/helloWorld.dir/flags.make 58 | 59 | CMakeFiles/helloWorld.dir/main.cpp.obj: CMakeFiles/helloWorld.dir/flags.make 60 | CMakeFiles/helloWorld.dir/main.cpp.obj: ../main.cpp 61 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=C:\my\source\example1\build_mingw\CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/helloWorld.dir/main.cpp.obj" 62 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\helloWorld.dir\main.cpp.obj -c C:\my\source\example1\main.cpp 63 | 64 | CMakeFiles/helloWorld.dir/main.cpp.i: cmake_force 65 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/helloWorld.dir/main.cpp.i" 66 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E C:\my\source\example1\main.cpp > CMakeFiles\helloWorld.dir\main.cpp.i 67 | 68 | CMakeFiles/helloWorld.dir/main.cpp.s: cmake_force 69 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/helloWorld.dir/main.cpp.s" 70 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S C:\my\source\example1\main.cpp -o CMakeFiles\helloWorld.dir\main.cpp.s 71 | 72 | # Object files for target helloWorld 73 | helloWorld_OBJECTS = \ 74 | "CMakeFiles/helloWorld.dir/main.cpp.obj" 75 | 76 | # External object files for target helloWorld 77 | helloWorld_EXTERNAL_OBJECTS = 78 | 79 | helloWorld.exe: CMakeFiles/helloWorld.dir/main.cpp.obj 80 | helloWorld.exe: CMakeFiles/helloWorld.dir/build.make 81 | helloWorld.exe: CMakeFiles/helloWorld.dir/linklibs.rsp 82 | helloWorld.exe: CMakeFiles/helloWorld.dir/objects1.rsp 83 | helloWorld.exe: CMakeFiles/helloWorld.dir/link.txt 84 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=C:\my\source\example1\build_mingw\CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable helloWorld.exe" 85 | $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles\helloWorld.dir\link.txt --verbose=$(VERBOSE) 86 | 87 | # Rule to build all files generated by this target. 88 | CMakeFiles/helloWorld.dir/build: helloWorld.exe 89 | 90 | .PHONY : CMakeFiles/helloWorld.dir/build 91 | 92 | CMakeFiles/helloWorld.dir/clean: 93 | $(CMAKE_COMMAND) -P CMakeFiles\helloWorld.dir\cmake_clean.cmake 94 | .PHONY : CMakeFiles/helloWorld.dir/clean 95 | 96 | CMakeFiles/helloWorld.dir/depend: 97 | $(CMAKE_COMMAND) -E cmake_depends "MinGW Makefiles" C:\my\source\example1 C:\my\source\example1 C:\my\source\example1\build_mingw C:\my\source\example1\build_mingw C:\my\source\example1\build_mingw\CMakeFiles\helloWorld.dir\DependInfo.cmake --color=$(COLOR) 98 | .PHONY : CMakeFiles/helloWorld.dir/depend 99 | 100 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/helloWorld.dir/main.cpp.obj" 3 | "helloWorld.pdb" 4 | "helloWorld.exe" 5 | "helloWorld.exe.manifest" 6 | "libhelloWorld.dll.a" 7 | ) 8 | 9 | # Per-language clean rules from dependency scanning. 10 | foreach(lang CXX) 11 | include(CMakeFiles/helloWorld.dir/cmake_clean_${lang}.cmake OPTIONAL) 12 | endforeach() 13 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | CMakeFiles/helloWorld.dir/main.cpp.obj 5 | C:/my/source/example1/main.cpp 6 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | CMakeFiles/helloWorld.dir/main.cpp.obj: ../main.cpp 5 | 6 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | # compile CXX with C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe 5 | CXX_FLAGS = -std=gnu++11 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = 10 | 11 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/link.txt: -------------------------------------------------------------------------------- 1 | "C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\helloWorld.dir/objects.a 2 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\ar.exe cr CMakeFiles\helloWorld.dir/objects.a @CMakeFiles\helloWorld.dir\objects1.rsp 3 | C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\G__~1.EXE -Wl,--whole-archive CMakeFiles\helloWorld.dir/objects.a -Wl,--no-whole-archive -o helloWorld.exe -Wl,--out-implib,libhelloWorld.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\helloWorld.dir\linklibs.rsp 4 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/linklibs.rsp: -------------------------------------------------------------------------------- 1 | -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 2 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/main.cpp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/helloWorld.dir/main.cpp.obj -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/objects.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/CMakeFiles/helloWorld.dir/objects.a -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/objects1.rsp: -------------------------------------------------------------------------------- 1 | CMakeFiles/helloWorld.dir/main.cpp.obj 2 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/helloWorld.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | 4 | -------------------------------------------------------------------------------- /example1/build_mingw/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /example1/build_mingw/Makefile: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.11 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. 10 | .NOTPARALLEL: 11 | 12 | 13 | #============================================================================= 14 | # Special targets provided by cmake. 15 | 16 | # Disable implicit rules so canonical targets will work. 17 | .SUFFIXES: 18 | 19 | 20 | # Remove some rules from gmake that .SUFFIXES does not remove. 21 | SUFFIXES = 22 | 23 | .SUFFIXES: .hpux_make_needs_suffix_list 24 | 25 | 26 | # Suppress display of executed commands. 27 | $(VERBOSE).SILENT: 28 | 29 | 30 | # A target that is always out of date. 31 | cmake_force: 32 | 33 | .PHONY : cmake_force 34 | 35 | #============================================================================= 36 | # Set environment variables for the build. 37 | 38 | SHELL = cmd.exe 39 | 40 | # The CMake executable. 41 | CMAKE_COMMAND = "C:\Program Files\CMake\bin\cmake.exe" 42 | 43 | # The command to remove a file. 44 | RM = "C:\Program Files\CMake\bin\cmake.exe" -E remove -f 45 | 46 | # Escaping for special characters. 47 | EQUALS = = 48 | 49 | # The top-level source directory on which CMake was run. 50 | CMAKE_SOURCE_DIR = C:\my\source\example1 51 | 52 | # The top-level build directory on which CMake was run. 53 | CMAKE_BINARY_DIR = C:\my\source\example1\build_mingw 54 | 55 | #============================================================================= 56 | # Targets provided globally by CMake. 57 | 58 | # Special rule for the target edit_cache 59 | edit_cache: 60 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." 61 | "C:\Program Files\CMake\bin\cmake-gui.exe" -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 62 | .PHONY : edit_cache 63 | 64 | # Special rule for the target edit_cache 65 | edit_cache/fast: edit_cache 66 | 67 | .PHONY : edit_cache/fast 68 | 69 | # Special rule for the target rebuild_cache 70 | rebuild_cache: 71 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 72 | "C:\Program Files\CMake\bin\cmake.exe" -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 73 | .PHONY : rebuild_cache 74 | 75 | # Special rule for the target rebuild_cache 76 | rebuild_cache/fast: rebuild_cache 77 | 78 | .PHONY : rebuild_cache/fast 79 | 80 | # The main all target 81 | all: cmake_check_build_system 82 | $(CMAKE_COMMAND) -E cmake_progress_start C:\my\source\example1\build_mingw\CMakeFiles C:\my\source\example1\build_mingw\CMakeFiles\progress.marks 83 | $(MAKE) -f CMakeFiles\Makefile2 all 84 | $(CMAKE_COMMAND) -E cmake_progress_start C:\my\source\example1\build_mingw\CMakeFiles 0 85 | .PHONY : all 86 | 87 | # The main clean target 88 | clean: 89 | $(MAKE) -f CMakeFiles\Makefile2 clean 90 | .PHONY : clean 91 | 92 | # The main clean target 93 | clean/fast: clean 94 | 95 | .PHONY : clean/fast 96 | 97 | # Prepare targets for installation. 98 | preinstall: all 99 | $(MAKE) -f CMakeFiles\Makefile2 preinstall 100 | .PHONY : preinstall 101 | 102 | # Prepare targets for installation. 103 | preinstall/fast: 104 | $(MAKE) -f CMakeFiles\Makefile2 preinstall 105 | .PHONY : preinstall/fast 106 | 107 | # clear depends 108 | depend: 109 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 1 110 | .PHONY : depend 111 | 112 | #============================================================================= 113 | # Target rules for targets named helloWorld 114 | 115 | # Build rule for target. 116 | helloWorld: cmake_check_build_system 117 | $(MAKE) -f CMakeFiles\Makefile2 helloWorld 118 | .PHONY : helloWorld 119 | 120 | # fast build rule for target. 121 | helloWorld/fast: 122 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/build 123 | .PHONY : helloWorld/fast 124 | 125 | main.obj: main.cpp.obj 126 | 127 | .PHONY : main.obj 128 | 129 | # target to build an object file 130 | main.cpp.obj: 131 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/main.cpp.obj 132 | .PHONY : main.cpp.obj 133 | 134 | main.i: main.cpp.i 135 | 136 | .PHONY : main.i 137 | 138 | # target to preprocess a source file 139 | main.cpp.i: 140 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/main.cpp.i 141 | .PHONY : main.cpp.i 142 | 143 | main.s: main.cpp.s 144 | 145 | .PHONY : main.s 146 | 147 | # target to generate assembly for a file 148 | main.cpp.s: 149 | $(MAKE) -f CMakeFiles\helloWorld.dir\build.make CMakeFiles/helloWorld.dir/main.cpp.s 150 | .PHONY : main.cpp.s 151 | 152 | # Help Target 153 | help: 154 | @echo The following are some of the valid targets for this Makefile: 155 | @echo ... all (the default if no target is provided) 156 | @echo ... clean 157 | @echo ... depend 158 | @echo ... helloWorld 159 | @echo ... edit_cache 160 | @echo ... rebuild_cache 161 | @echo ... main.obj 162 | @echo ... main.i 163 | @echo ... main.s 164 | .PHONY : help 165 | 166 | 167 | 168 | #============================================================================= 169 | # Special targets to cleanup operation of make. 170 | 171 | # Special rule to run CMake to check the build system integrity. 172 | # No rule that depends on this can have commands that come from listfiles 173 | # because they might be regenerated. 174 | cmake_check_build_system: 175 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 0 176 | .PHONY : cmake_check_build_system 177 | 178 | -------------------------------------------------------------------------------- /example1/build_mingw/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: C:/my/source/example1 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/Example1") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Is this installation the result of a crosscompile? 31 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 32 | set(CMAKE_CROSSCOMPILING "FALSE") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "C:/my/source/example1/build_mingw/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /example1/build_mingw/helloWorld.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starokurov/cpp_open/bc3ed816d0271d30746cbc16abfb45a4c010da8b/example1/build_mingw/helloWorld.exe -------------------------------------------------------------------------------- /example1/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int, char**) { 4 | 5 | std::cout << "Hello from the first CMake example!" << std::endl; 6 | 7 | return 0; 8 | } -------------------------------------------------------------------------------- /example2/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example2) 4 | 5 | # Also possible, 6 | # version.h will not be presented in the project tree. 7 | # add_executable(version main.cpp version.cpp) 8 | 9 | # Also possible 10 | # add_executable(version main.cpp version.cpp version.h) 11 | 12 | set(SOURCES 13 | main.cpp 14 | version.cpp 15 | ) 16 | 17 | set(HEADERS 18 | version.h 19 | ) 20 | 21 | add_executable(version ${SOURCES} ${HEADERS}) 22 | set_target_properties( 23 | version PROPERTIES 24 | CXX_STANDARD 11 25 | CXX_STANDARD_REQUIRED ON 26 | ) 27 | -------------------------------------------------------------------------------- /example2/main.cpp: -------------------------------------------------------------------------------- 1 | #include "version.h" 2 | 3 | #include 4 | 5 | int main(int, char**) { 6 | 7 | std::cout << "Hello from the second CMake example!" 8 | << std::endl; 9 | std::cout << "Version = " << examples::getVersion() 10 | << std::endl; 11 | 12 | return 0; 13 | } -------------------------------------------------------------------------------- /example2/version.cpp: -------------------------------------------------------------------------------- 1 | #include "version.h" 2 | 3 | namespace examples { 4 | 5 | int getVersion() { 6 | return 0; 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /example2/version.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace examples { 4 | 5 | int getVersion(); 6 | 7 | } -------------------------------------------------------------------------------- /example3/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example3 VERSION 0.0.1) 4 | 5 | configure_file( 6 | config.h.in 7 | ${CMAKE_CURRENT_BINARY_DIR}/config.h 8 | ) 9 | 10 | set(SOURCES 11 | main.cpp 12 | version.cpp 13 | ) 14 | set(HEADERS 15 | version.h 16 | ) 17 | 18 | add_executable(configure ${SOURCES} ${HEADERS}) 19 | set_target_properties( 20 | configure PROPERTIES 21 | CXX_STANDARD 11 22 | CXX_STANDARD_REQUIRED ON 23 | ) 24 | 25 | target_include_directories( 26 | configure 27 | PRIVATE 28 | ${CMAKE_CURRENT_BINARY_DIR} 29 | ) -------------------------------------------------------------------------------- /example3/config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine PROJECT_VERSION @PROJECT_VERSION_PATCH@ -------------------------------------------------------------------------------- /example3/main.cpp: -------------------------------------------------------------------------------- 1 | #include "version.h" 2 | 3 | #include 4 | 5 | int main(int, char**) { 6 | 7 | std::cout << "Hello from the second CMake example!" << std::endl; 8 | std::cout << "Version = " << examples::getVersion() << std::endl; 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /example3/version.cpp: -------------------------------------------------------------------------------- 1 | #include "version.h" 2 | #include "config.h" 3 | 4 | namespace examples { 5 | 6 | int getVersion() { 7 | return (PROJECT_VERSION); 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /example3/version.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace examples { 4 | 5 | int getVersion(); 6 | 7 | } -------------------------------------------------------------------------------- /example4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example4 VERSION 0.0.2) 4 | 5 | add_subdirectory(lib) 6 | add_subdirectory(src) -------------------------------------------------------------------------------- /example4/lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Library VERSION 0.0.2) 4 | 5 | configure_file( 6 | config.h.in 7 | ${CMAKE_CURRENT_BINARY_DIR}/config.h 8 | ) 9 | 10 | add_library(lib STATIC lib.cpp lib.h) 11 | set_target_properties( 12 | lib PROPERTIES 13 | CXX_STANDARD 14 14 | CXX_STANDARD_REQUIRED ON 15 | ) 16 | target_include_directories( 17 | lib 18 | PRIVATE 19 | ${CMAKE_CURRENT_BINARY_DIR} 20 | ) -------------------------------------------------------------------------------- /example4/lib/config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine PROJECT_VERSION @PROJECT_VERSION_PATCH@ -------------------------------------------------------------------------------- /example4/lib/lib.cpp: -------------------------------------------------------------------------------- 1 | #include "lib.h" 2 | #include "config.h" 3 | 4 | #include 5 | 6 | namespace lib { 7 | 8 | int makeSomeSuperJob() { 9 | std::cout << "Hello from lib!" << std::endl; 10 | return 42; 11 | } 12 | 13 | int getVersion() { 14 | return (PROJECT_VERSION); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /example4/lib/lib.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace lib { 4 | 5 | int makeSomeSuperJob(); 6 | 7 | int getVersion(); 8 | 9 | } -------------------------------------------------------------------------------- /example4/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Main VERSION 0.0.5) 4 | 5 | configure_file( 6 | config.h.in 7 | ${CMAKE_CURRENT_BINARY_DIR}/config.h 8 | ) 9 | 10 | add_executable(mainLib main.cpp) 11 | set_target_properties( 12 | mainLib PROPERTIES 13 | CXX_STANDARD 14 14 | CXX_STANDARD_REQUIRED ON 15 | ) 16 | target_include_directories( 17 | mainLib 18 | PRIVATE 19 | ${CMAKE_CURRENT_BINARY_DIR} 20 | ) 21 | 22 | target_include_directories( 23 | mainLib 24 | PRIVATE 25 | ${CMAKE_CURRENT_SOURCE_DIR}/../lib 26 | ) 27 | target_link_libraries(mainLib lib) -------------------------------------------------------------------------------- /example4/src/config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine PROJECT_VERSION @PROJECT_VERSION_PATCH@ -------------------------------------------------------------------------------- /example4/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include "lib.h" 3 | 4 | #include 5 | 6 | int main(int, char**) { 7 | std::cout << "Hello from main!" << std::endl; 8 | lib::makeSomeSuperJob(); 9 | std::cout << "Lib verion:" << lib::getVersion() << std::endl; 10 | 11 | std::cout << "Main version: " << (PROJECT_VERSION) << std::endl; 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /example5/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example5 VERSION 0.0.3) 4 | 5 | add_subdirectory(sumLib) 6 | add_subdirectory(src) -------------------------------------------------------------------------------- /example5/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Main VERSION 0.0.6) 4 | 5 | configure_file( 6 | config.h.in 7 | ${CMAKE_CURRENT_BINARY_DIR}/config.h 8 | ) 9 | 10 | add_executable(mainLib main.cpp) 11 | set_target_properties( 12 | mainLib PROPERTIES 13 | CXX_STANDARD 14 14 | CXX_STANDARD_REQUIRED ON 15 | ) 16 | target_include_directories( 17 | mainLib 18 | PRIVATE 19 | ${CMAKE_CURRENT_BINARY_DIR} 20 | ) 21 | find_package(sumLib CONFIG REQUIRED) 22 | target_link_libraries(mainLib SumLib::sumLib) -------------------------------------------------------------------------------- /example5/src/config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine PROJECT_VERSION @PROJECT_VERSION_PATCH@ -------------------------------------------------------------------------------- /example5/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include "sumLib.h" 3 | 4 | #include 5 | 6 | int main(int, char**) { 7 | std::cout << "Hello from main!" << std::endl; 8 | sumLib::sum(1, 3); 9 | std::cout << "Lib verion:" << sumLib::getVersion() << std::endl; 10 | 11 | std::cout << "Main version: " << (PROJECT_VERSION) << std::endl; 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /example5/sumLib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(SumLibrary VERSION 0.0.3) 4 | 5 | configure_file( 6 | config.h.in 7 | ${CMAKE_CURRENT_BINARY_DIR}/config.h 8 | ) 9 | 10 | add_library(sumLib STATIC sumLib.cpp sumLib.h) 11 | set_target_properties( 12 | sumLib PROPERTIES 13 | CXX_STANDARD 14 14 | CXX_STANDARD_REQUIRED ON 15 | ) 16 | target_include_directories( 17 | sumLib 18 | PRIVATE 19 | ${CMAKE_CURRENT_BINARY_DIR} 20 | ) 21 | 22 | install(TARGETS sumLib EXPORT sumLibTargets 23 | LIBRARY DESTINATION lib 24 | ARCHIVE DESTINATION lib 25 | INCLUDES DESTINATION include 26 | ) 27 | install(FILES sumLib.h DESTINATION include) 28 | 29 | install(EXPORT sumLibTargets 30 | FILE sumLibConfig.cmake 31 | NAMESPACE SumLib:: 32 | DESTINATION lib/cmake/SumLib 33 | ) -------------------------------------------------------------------------------- /example5/sumLib/config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine PROJECT_VERSION @PROJECT_VERSION_PATCH@ -------------------------------------------------------------------------------- /example5/sumLib/sumLib.cpp: -------------------------------------------------------------------------------- 1 | #include "sumLib.h" 2 | #include "config.h" 3 | 4 | #include 5 | 6 | namespace sumLib { 7 | 8 | int sum(int a, int b) { 9 | std::cout << "Hello from sumLib!" << std::endl; 10 | return a + b; 11 | } 12 | 13 | int getVersion() { 14 | return (PROJECT_VERSION); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /example5/sumLib/sumLib.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace sumLib { 4 | 5 | int sum(int a, int b); 6 | 7 | int getVersion(); 8 | 9 | } -------------------------------------------------------------------------------- /example6/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Main VERSION 0.0.6) 4 | 5 | configure_file( 6 | config.h.in 7 | ${CMAKE_CURRENT_BINARY_DIR}/config.h 8 | ) 9 | 10 | add_executable(mainLib main.cpp) 11 | set_target_properties( 12 | mainLib PROPERTIES 13 | CXX_STANDARD 14 14 | CXX_STANDARD_REQUIRED ON 15 | ) 16 | target_include_directories( 17 | mainLib 18 | PRIVATE 19 | ${CMAKE_CURRENT_BINARY_DIR} 20 | ) 21 | 22 | set(CMAKE_MODULE_PATH 23 | ${CMAKE_MODULE_PATH} 24 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake/") 25 | 26 | find_package(sumLib MODULE REQUIRED) 27 | 28 | message("!!!! SUMLIB_INCLUDE_DIRS = ${SUMLIB_INCLUDE_DIRS}") 29 | message("!!!! SUMLIB_LIB = ${SUMLIB_LIB}") 30 | 31 | target_include_directories(mainLib PRIVATE ${SUMLIB_INCLUDE_DIRS}) 32 | target_link_libraries(mainLib ${SUMLIB_LIB}) -------------------------------------------------------------------------------- /example6/cmake/FindPNG.cmake: -------------------------------------------------------------------------------- 1 | # Distributed under the OSI-approved BSD 3-Clause License. See accompanying 2 | # file Copyright.txt or https://cmake.org/licensing for details. 3 | 4 | #.rst: 5 | # FindPNG 6 | # ------- 7 | # 8 | # Find libpng, the official reference library for the PNG image format. 9 | # 10 | # Imported targets 11 | # ^^^^^^^^^^^^^^^^ 12 | # 13 | # This module defines the following :prop_tgt:`IMPORTED` target: 14 | # 15 | # ``PNG::PNG`` 16 | # The libpng library, if found. 17 | # 18 | # Result variables 19 | # ^^^^^^^^^^^^^^^^ 20 | # 21 | # This module will set the following variables in your project: 22 | # 23 | # ``PNG_INCLUDE_DIRS`` 24 | # where to find png.h, etc. 25 | # ``PNG_LIBRARIES`` 26 | # the libraries to link against to use PNG. 27 | # ``PNG_DEFINITIONS`` 28 | # You should add_definitions(${PNG_DEFINITIONS}) before compiling code 29 | # that includes png library files. 30 | # ``PNG_FOUND`` 31 | # If false, do not try to use PNG. 32 | # ``PNG_VERSION_STRING`` 33 | # the version of the PNG library found (since CMake 2.8.8) 34 | # 35 | # Obsolete variables 36 | # ^^^^^^^^^^^^^^^^^^ 37 | # 38 | # The following variables may also be set, for backwards compatibility: 39 | # 40 | # ``PNG_LIBRARY`` 41 | # where to find the PNG library. 42 | # ``PNG_INCLUDE_DIR`` 43 | # where to find the PNG headers (same as PNG_INCLUDE_DIRS) 44 | # 45 | # Since PNG depends on the ZLib compression library, none of the above 46 | # will be defined unless ZLib can be found. 47 | 48 | if(PNG_FIND_QUIETLY) 49 | set(_FIND_ZLIB_ARG QUIET) 50 | endif() 51 | find_package(ZLIB ${_FIND_ZLIB_ARG}) 52 | 53 | if(ZLIB_FOUND) 54 | find_path(PNG_PNG_INCLUDE_DIR png.h PATH_SUFFIXES include/libpng) 55 | 56 | list(APPEND PNG_NAMES png libpng) 57 | unset(PNG_NAMES_DEBUG) 58 | set(_PNG_VERSION_SUFFIXES 17 16 15 14 12) 59 | if (PNG_FIND_VERSION MATCHES "^([0-9]+)\\.([0-9]+)(\\..*)?$") 60 | set(_PNG_VERSION_SUFFIX_MIN "${CMAKE_MATCH_1}${CMAKE_MATCH_2}") 61 | if (PNG_FIND_VERSION_EXACT) 62 | set(_PNG_VERSION_SUFFIXES ${_PNG_VERSION_SUFFIX_MIN}) 63 | else () 64 | string(REGEX REPLACE 65 | "${_PNG_VERSION_SUFFIX_MIN}.*" "${_PNG_VERSION_SUFFIX_MIN}" 66 | _PNG_VERSION_SUFFIXES "${_PNG_VERSION_SUFFIXES}") 67 | endif () 68 | unset(_PNG_VERSION_SUFFIX_MIN) 69 | endif () 70 | foreach(v IN LISTS _PNG_VERSION_SUFFIXES) 71 | list(APPEND PNG_NAMES png${v} libpng${v}) 72 | list(APPEND PNG_NAMES_DEBUG png${v}d libpng${v}d) 73 | endforeach() 74 | unset(_PNG_VERSION_SUFFIXES) 75 | # For compatibility with versions prior to this multi-config search, honor 76 | # any PNG_LIBRARY that is already specified and skip the search. 77 | if(NOT PNG_LIBRARY) 78 | find_library(PNG_LIBRARY_RELEASE NAMES ${PNG_NAMES}) 79 | find_library(PNG_LIBRARY_DEBUG NAMES ${PNG_NAMES_DEBUG}) 80 | include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) 81 | select_library_configurations(PNG) 82 | mark_as_advanced(PNG_LIBRARY_RELEASE PNG_LIBRARY_DEBUG) 83 | endif() 84 | unset(PNG_NAMES) 85 | unset(PNG_NAMES_DEBUG) 86 | 87 | # Set by select_library_configurations(), but we want the one from 88 | # find_package_handle_standard_args() below. 89 | unset(PNG_FOUND) 90 | 91 | if (PNG_LIBRARY AND PNG_PNG_INCLUDE_DIR) 92 | # png.h includes zlib.h. Sigh. 93 | set(PNG_INCLUDE_DIRS ${PNG_PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ) 94 | set(PNG_INCLUDE_DIR ${PNG_INCLUDE_DIRS} ) # for backward compatibility 95 | set(PNG_LIBRARIES ${PNG_LIBRARY} ${ZLIB_LIBRARY}) 96 | 97 | if (CYGWIN) 98 | if(BUILD_SHARED_LIBS) 99 | # No need to define PNG_USE_DLL here, because it's default for Cygwin. 100 | else() 101 | set (PNG_DEFINITIONS -DPNG_STATIC) 102 | endif() 103 | endif () 104 | 105 | if(NOT TARGET PNG::PNG) 106 | add_library(PNG::PNG UNKNOWN IMPORTED) 107 | set_target_properties(PNG::PNG PROPERTIES 108 | INTERFACE_COMPILE_DEFINITIONS "${PNG_DEFINITIONS}" 109 | INTERFACE_INCLUDE_DIRECTORIES "${PNG_INCLUDE_DIRS}" 110 | INTERFACE_LINK_LIBRARIES ZLIB::ZLIB) 111 | if(EXISTS "${PNG_LIBRARY}") 112 | set_target_properties(PNG::PNG PROPERTIES 113 | IMPORTED_LINK_INTERFACE_LANGUAGES "C" 114 | IMPORTED_LOCATION "${PNG_LIBRARY}") 115 | endif() 116 | if(EXISTS "${PNG_LIBRARY_RELEASE}") 117 | set_property(TARGET PNG::PNG APPEND PROPERTY 118 | IMPORTED_CONFIGURATIONS RELEASE) 119 | set_target_properties(PNG::PNG PROPERTIES 120 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C" 121 | IMPORTED_LOCATION_RELEASE "${PNG_LIBRARY_RELEASE}") 122 | endif() 123 | if(EXISTS "${PNG_LIBRARY_DEBUG}") 124 | set_property(TARGET PNG::PNG APPEND PROPERTY 125 | IMPORTED_CONFIGURATIONS DEBUG) 126 | set_target_properties(PNG::PNG PROPERTIES 127 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C" 128 | IMPORTED_LOCATION_DEBUG "${PNG_LIBRARY_DEBUG}") 129 | endif() 130 | endif() 131 | endif () 132 | 133 | if (PNG_PNG_INCLUDE_DIR AND EXISTS "${PNG_PNG_INCLUDE_DIR}/png.h") 134 | file(STRINGS "${PNG_PNG_INCLUDE_DIR}/png.h" png_version_str REGEX "^#define[ \t]+PNG_LIBPNG_VER_STRING[ \t]+\".+\"") 135 | 136 | string(REGEX REPLACE "^#define[ \t]+PNG_LIBPNG_VER_STRING[ \t]+\"([^\"]+)\".*" "\\1" PNG_VERSION_STRING "${png_version_str}") 137 | unset(png_version_str) 138 | endif () 139 | endif() 140 | 141 | include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) 142 | find_package_handle_standard_args(PNG 143 | REQUIRED_VARS PNG_LIBRARY PNG_PNG_INCLUDE_DIR 144 | VERSION_VAR PNG_VERSION_STRING) 145 | 146 | mark_as_advanced(PNG_PNG_INCLUDE_DIR PNG_LIBRARY ) 147 | -------------------------------------------------------------------------------- /example6/cmake/FindsumLib.cmake: -------------------------------------------------------------------------------- 1 | # Find module for the sumLib 2 | # Exports 3 | # SUMLIB_INCLUDE_DIRS - for include folder path 4 | # SUMLIB_LIB - for lib path 5 | # This is the directory where the sumLib is located. 6 | # By default SUMLIBDIR environment variable value is taken. 7 | set(SUMLIB_ROOT 8 | "$ENV{SUMLIBDIR}" 9 | CACHE PATH "sumLib root directory.") 10 | 11 | # Look for headers. 12 | find_path(SUMLIB_INCLUDE_DIRS 13 | NAMES sumLib.h 14 | HINTS $ENV{SUMLIBDIR} 15 | PATHS ${SUMLIB_ROOT} 16 | PATH_SUFFIXES include 17 | ) 18 | 19 | find_library(SUMLIB_LIB 20 | NAMES sumLib 21 | HINTS $ENV{SUMLIBDIR} 22 | PATHS ${SUMLIB_ROOT} 23 | PATH_SUFFIXES lib 24 | NO_DEFAULT_PATH 25 | ) 26 | 27 | # Support the REQUIRED and QUIET arguments, and set SUMLIB_FOUND if found. 28 | include(FindPackageHandleStandardArgs) 29 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(SUMLIB DEFAULT_MSG 30 | SUMLIB_LIB 31 | SUMLIB_INCLUDE_DIRS) 32 | -------------------------------------------------------------------------------- /example6/config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine PROJECT_VERSION @PROJECT_VERSION_PATCH@ -------------------------------------------------------------------------------- /example6/main.cpp: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include "sumLib.h" 3 | 4 | #include 5 | 6 | int main(int, char**) { 7 | std::cout << "Hello from main!" << std::endl; 8 | sumLib::sum(1, 3); 9 | std::cout << "Lib verion:" << sumLib::getVersion() << std::endl; 10 | 11 | std::cout << "Main version: " << (PROJECT_VERSION) << std::endl; 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /example7/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example7 VERSION 0.0.3) 4 | 5 | option(BUILD_EXAMPLES "Whether to build an examples or not." OFF) 6 | 7 | add_subdirectory(src) 8 | 9 | if(BUILD_EXAMPLES) 10 | add_subdirectory(example) 11 | endif() -------------------------------------------------------------------------------- /example7/example/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example VERSION 0.0.6) 4 | 5 | option(WITH_INFO_EXAMPLE "Hmmmm...." OFF) 6 | 7 | add_executable(main main.cpp) 8 | if (WITH_INFO_EXAMPLE) 9 | target_compile_definitions(main PRIVATE "-DWITH_INFO=1") 10 | else() 11 | target_compile_definitions(main PRIVATE "-DWITH_INFO=0") 12 | endif() 13 | 14 | set_target_properties( 15 | main PROPERTIES 16 | CXX_STANDARD 14 17 | CXX_STANDARD_REQUIRED ON 18 | ) 19 | target_include_directories( 20 | main 21 | PRIVATE 22 | ${CMAKE_CURRENT_BINARY_DIR} 23 | ) 24 | if (BUILD_EXAMPLES) 25 | target_link_libraries(main logger) 26 | target_include_directories( 27 | main PRIVATE 28 | "${CMAKE_CURRENT_SOURCE_DIR}/../src/") 29 | else() 30 | find_package(logger CONFIG REQUIRED) 31 | target_link_libraries(main logger::logger) 32 | endif() -------------------------------------------------------------------------------- /example7/example/main.cpp: -------------------------------------------------------------------------------- 1 | #include "logger.h" 2 | 3 | #include 4 | 5 | int main(int, char**) { 6 | 7 | std::cout << "It is a simple example of the logger usage" << std::endl; 8 | 9 | #if (WITH_INFO) 10 | logger::info("This is an info message"); 11 | #endif 12 | logger::warning("This is a warning message"); 13 | logger::error("This is an error message"); 14 | logger::fatal("This is a fatal error message"); 15 | 16 | return 0; 17 | } -------------------------------------------------------------------------------- /example7/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Logger VERSION 0.0.6) 4 | 5 | add_library(logger STATIC logger.cpp logger.h) 6 | set_target_properties( 7 | logger PROPERTIES 8 | CXX_STANDARD 14 9 | CXX_STANDARD_REQUIRED ON 10 | ) 11 | 12 | install(TARGETS logger EXPORT loggerTargets 13 | LIBRARY DESTINATION lib 14 | ARCHIVE DESTINATION lib 15 | INCLUDES DESTINATION include 16 | ) 17 | install(FILES logger.h DESTINATION include) 18 | 19 | install(EXPORT loggerTargets 20 | FILE loggerConfig.cmake 21 | NAMESPACE logger:: 22 | DESTINATION lib/cmake/logger 23 | ) -------------------------------------------------------------------------------- /example7/src/logger.cpp: -------------------------------------------------------------------------------- 1 | #include "logger.h" 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | 9 | namespace { 10 | 11 | void printDateTime(std::ostream& os) { 12 | std::time_t t = std::time(nullptr); 13 | std::tm tm; 14 | localtime_s(&tm, &t); 15 | os << std::put_time(&tm, "%Y-%m-%d %H:%M:%S"); 16 | } 17 | 18 | void writeMessage(const std::string& msg, const char* prefix) { 19 | printDateTime(std::cout); 20 | std::cout << ' ' << prefix << ' ' << msg << std::endl; 21 | } 22 | 23 | } 24 | 25 | namespace logger { 26 | 27 | void info(const std::string& msg) { 28 | writeMessage(msg, "[Info]"); 29 | } 30 | 31 | void warning(const std::string& msg) { 32 | writeMessage(msg, "[Warning]"); 33 | } 34 | 35 | void error(const std::string& msg) { 36 | writeMessage(msg, "[Error]"); 37 | } 38 | 39 | void fatal(const std::string& msg) { 40 | writeMessage(msg, "[Fatal]"); 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /example7/src/logger.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | namespace logger { 6 | 7 | void info(const std::string& msg); 8 | 9 | void warning(const std::string& msg); 10 | 11 | void error(const std::string& msg); 12 | 13 | void fatal(const std::string& msg); 14 | 15 | } -------------------------------------------------------------------------------- /example8/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | project(Example8) 4 | 5 | set(SOURCES 6 | main.cpp 7 | math.cpp 8 | ) 9 | 10 | set(HEADERS 11 | math.h) 12 | 13 | add_executable(main ${SOURCES} ${HEADERS}) 14 | set_target_properties( 15 | main PROPERTIES 16 | CXX_STANDARD 11 17 | CXX_STANDARD_REQUIRED ON 18 | ) 19 | target_compile_features( 20 | main 21 | PRIVATE 22 | cxx_generic_lambdas 23 | ) -------------------------------------------------------------------------------- /example8/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | int main(int, char**) { 6 | 7 | std::cout << "Hello from the CMake example!" << std::endl; 8 | 9 | auto f = []() { 10 | std::cout << "I am lambda!" << std::endl; 11 | }; 12 | 13 | f(); 14 | 15 | std::thread thr{f}; 16 | thr.join(); 17 | 18 | return 0; 19 | } -------------------------------------------------------------------------------- /example8/math.cpp: -------------------------------------------------------------------------------- 1 | #include "math.h" 2 | 3 | namespace math { 4 | 5 | int sum(int a, int b) { 6 | return a + b + 1; 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /example8/math.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace math { 4 | 5 | int sum(int a, int b); 6 | 7 | } --------------------------------------------------------------------------------