├── .gitignore ├── .gitmodules ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── analyze-cxx17.cmake ├── analyze.cmake ├── android-ndk-r10e-api-16-armeabi-v7a-neon-clang-35-hid-sections.cmake ├── android-ndk-r10e-api-16-armeabi-v7a-neon-clang-35-hid.cmake ├── android-ndk-r10e-api-16-armeabi-v7a-neon-clang-35.cmake ├── android-ndk-r10e-api-16-armeabi-v7a-neon.cmake ├── android-ndk-r10e-api-16-x86-hid-sections.cmake ├── android-ndk-r10e-api-16-x86-hid.cmake ├── android-ndk-r10e-api-16-x86.cmake ├── android-ndk-r10e-api-19-armeabi-v7a-neon-c11.cmake ├── android-ndk-r10e-api-19-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r10e-api-19-armeabi-v7a-neon-hid-sections-lto.cmake ├── android-ndk-r10e-api-19-armeabi-v7a-neon-hid-sections.cmake ├── android-ndk-r10e-api-19-armeabi-v7a-neon.cmake ├── android-ndk-r10e-api-21-arm64-v8a-clang-35.cmake ├── android-ndk-r10e-api-21-arm64-v8a-gcc-49-hid-sections.cmake ├── android-ndk-r10e-api-21-arm64-v8a-gcc-49-hid.cmake ├── android-ndk-r10e-api-21-arm64-v8a-gcc-49.cmake ├── android-ndk-r10e-api-21-arm64-v8a.cmake ├── android-ndk-r10e-api-21-armeabi-clang-libcxx.cmake ├── android-ndk-r10e-api-21-armeabi-v7a-neon-clang-35.cmake ├── android-ndk-r10e-api-21-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r10e-api-21-armeabi-v7a-neon-hid-sections.cmake ├── android-ndk-r10e-api-21-armeabi-v7a-neon.cmake ├── android-ndk-r10e-api-21-armeabi-v7a.cmake ├── android-ndk-r10e-api-21-armeabi.cmake ├── android-ndk-r10e-api-21-mips-clang-libcxx.cmake ├── android-ndk-r10e-api-21-mips.cmake ├── android-ndk-r10e-api-21-mips64.cmake ├── android-ndk-r10e-api-21-x86-64-hid-sections.cmake ├── android-ndk-r10e-api-21-x86-64-hid.cmake ├── android-ndk-r10e-api-21-x86-64.cmake ├── android-ndk-r10e-api-21-x86-clang-libcxx.cmake ├── android-ndk-r10e-api-21-x86.cmake ├── android-ndk-r10e-api-8-armeabi-v7a.cmake ├── android-ndk-r11c-api-16-armeabi-cxx14.cmake ├── android-ndk-r11c-api-16-armeabi-v7a-cxx14.cmake ├── android-ndk-r11c-api-16-armeabi-v7a-neon-clang-35-hid.cmake ├── android-ndk-r11c-api-16-armeabi-v7a-neon-clang-35.cmake ├── android-ndk-r11c-api-16-armeabi-v7a-neon-cxx14.cmake ├── android-ndk-r11c-api-16-armeabi-v7a-neon.cmake ├── android-ndk-r11c-api-16-armeabi-v7a.cmake ├── android-ndk-r11c-api-16-armeabi.cmake ├── android-ndk-r11c-api-16-x86-hid.cmake ├── android-ndk-r11c-api-16-x86.cmake ├── android-ndk-r11c-api-19-armeabi-v7a-neon.cmake ├── android-ndk-r11c-api-21-arm64-v8a-clang-35.cmake ├── android-ndk-r11c-api-21-arm64-v8a-gcc-49-hid.cmake ├── android-ndk-r11c-api-21-arm64-v8a-gcc-49.cmake ├── android-ndk-r11c-api-21-arm64-v8a.cmake ├── android-ndk-r11c-api-21-armeabi-v7a-neon-clang-35.cmake ├── android-ndk-r11c-api-21-armeabi-v7a-neon.cmake ├── android-ndk-r11c-api-21-armeabi-v7a.cmake ├── android-ndk-r11c-api-21-armeabi.cmake ├── android-ndk-r11c-api-21-mips.cmake ├── android-ndk-r11c-api-21-mips64.cmake ├── android-ndk-r11c-api-21-x86-64-hid.cmake ├── android-ndk-r11c-api-21-x86-64.cmake ├── android-ndk-r11c-api-21-x86.cmake ├── android-ndk-r11c-api-8-armeabi-v7a.cmake ├── android-ndk-r12b-api-19-armeabi-v7a-neon.cmake ├── android-ndk-r13b-api-19-armeabi-v7a-neon.cmake ├── android-ndk-r14-api-16-armeabi-v7a-neon-clang-hid-sections-lto.cmake ├── android-ndk-r14-api-19-armeabi-v7a-neon-c11.cmake ├── android-ndk-r14-api-19-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r14-api-19-armeabi-v7a-neon-clang.cmake ├── android-ndk-r14-api-19-armeabi-v7a-neon-hid-sections-lto.cmake ├── android-ndk-r14-api-21-arm64-v8a-clang-hid-sections-lto.cmake ├── android-ndk-r14-api-21-arm64-v8a-neon-clang-libcxx.cmake ├── android-ndk-r14-api-21-x86-64.cmake ├── android-ndk-r14b-api-21-armeabi-clang-libcxx.cmake ├── android-ndk-r14b-api-21-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r14b-api-21-mips-clang-libcxx.cmake ├── android-ndk-r14b-api-21-x86-clang-libcxx.cmake ├── android-ndk-r15c-api-16-armeabi-clang-libcxx.cmake ├── android-ndk-r15c-api-16-armeabi-v7a-clang-libcxx.cmake ├── android-ndk-r15c-api-16-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r15c-api-16-mips-clang-libcxx.cmake ├── android-ndk-r15c-api-16-x86-clang-libcxx.cmake ├── android-ndk-r15c-api-21-arm64-v8a-clang-libcxx.cmake ├── android-ndk-r15c-api-21-arm64-v8a-neon-clang-libcxx.cmake ├── android-ndk-r15c-api-21-armeabi-clang-libcxx.cmake ├── android-ndk-r15c-api-21-armeabi-v7a-clang-libcxx.cmake ├── android-ndk-r15c-api-21-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r15c-api-21-mips-clang-libcxx.cmake ├── android-ndk-r15c-api-21-x86-64-clang-libcxx.cmake ├── android-ndk-r15c-api-21-x86-clang-libcxx.cmake ├── android-ndk-r15c-api-24-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r16b-api-16-armeabi-v7a-clang-libcxx14.cmake ├── android-ndk-r16b-api-16-armeabi-v7a-thumb-clang-libcxx14.cmake ├── android-ndk-r16b-api-16-x86-clang-libcxx14.cmake ├── android-ndk-r16b-api-19-gcc-49-armeabi-v7a-neon-libcxx-hid-sections-lto.cmake ├── android-ndk-r16b-api-21-arm64-v8a-neon-clang-libcxx.cmake ├── android-ndk-r16b-api-21-arm64-v8a-neon-clang-libcxx14.cmake ├── android-ndk-r16b-api-21-armeabi-clang-libcxx.cmake ├── android-ndk-r16b-api-21-armeabi-clang-libcxx14.cmake ├── android-ndk-r16b-api-21-armeabi-v7a-clang-libcxx.cmake ├── android-ndk-r16b-api-21-armeabi-v7a-clang-libcxx14.cmake ├── android-ndk-r16b-api-21-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r16b-api-21-armeabi-v7a-neon-clang-libcxx14.cmake ├── android-ndk-r16b-api-21-x86-64-clang-libcxx.cmake ├── android-ndk-r16b-api-21-x86-clang-libcxx.cmake ├── android-ndk-r16b-api-24-arm64-v8a-clang-libcxx14.cmake ├── android-ndk-r16b-api-24-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r16b-api-24-armeabi-v7a-neon-clang-libcxx14.cmake ├── android-ndk-r16b-api-24-x86-64-clang-libcxx14.cmake ├── android-ndk-r16b-api-24-x86-clang-libcxx14.cmake ├── android-ndk-r17-api-16-armeabi-v7a-clang-libcxx14.cmake ├── android-ndk-r17-api-16-x86-clang-libcxx14.cmake ├── android-ndk-r17-api-19-armeabi-v7a-neon-clang-libcxx.cmake ├── android-ndk-r17-api-19-armeabi-v7a-neon-hid-sections.cmake ├── android-ndk-r17-api-21-arm64-v8a-neon-clang-libcxx14.cmake ├── android-ndk-r17-api-21-x86-64-clang-libcxx14.cmake ├── android-ndk-r17-api-24-arm64-v8a-clang-libcxx11.cmake ├── android-ndk-r17-api-24-arm64-v8a-clang-libcxx14.cmake ├── android-ndk-r18-api-24-arm64-v8a-clang-libcxx14.cmake ├── android-ndk-r18b-api-16-armeabi-v7a-clang-libcxx.cmake ├── android-ndk-r18b-api-21-arm64-v8a-clang-libcxx.cmake ├── android-ndk-r18b-api-21-armeabi-v7a-clang-libcxx.cmake ├── android-ndk-r18b-api-21-x86-64-clang-libcxx.cmake ├── android-ndk-r18b-api-21-x86-clang-libcxx.cmake ├── android-ndk-r18b-api-24-arm64-v8a-clang-libcxx11.cmake ├── android-ndk-r18b-api-28-arm64-v8a-clang-libcxx11.cmake ├── android-vc-ndk-r10e-api-19-arm-clang-3-6.cmake ├── android-vc-ndk-r10e-api-19-arm-gcc-4-9.cmake ├── android-vc-ndk-r10e-api-19-x86-clang-3-6.cmake ├── android-vc-ndk-r10e-api-21-arm-clang-3-6.cmake ├── appveyor.yml ├── arm-openwrt-linux-muslgnueabi-cxx14.cmake ├── arm-openwrt-linux-muslgnueabi.cmake ├── bin ├── build.py ├── detail │ ├── __init__.py │ ├── call.py │ ├── cpack_generator.py │ ├── create_archive.py │ ├── create_framework.py │ ├── generate_command.py │ ├── get_nmake_environment.py │ ├── ios_dev_root.py │ ├── logging.py │ ├── open_project.py │ ├── osx_dev_root.py │ ├── pack_command.py │ ├── rmtree.py │ ├── target.py │ ├── test_command.py │ ├── timer.py │ ├── toolchain_name.py │ ├── toolchain_table.py │ ├── util.py │ ├── verify_mingw_path.py │ ├── verify_msys_path.py │ └── win32.py ├── install-ci-dependencies.py ├── polly ├── polly.bat └── polly.py ├── clang-5-cxx14.cmake ├── clang-5-cxx17.cmake ├── clang-5.cmake ├── clang-cxx11.cmake ├── clang-cxx14-pic.cmake ├── clang-cxx14.cmake ├── clang-cxx17-pic.cmake ├── clang-cxx17.cmake ├── clang-cxx20.cmake ├── clang-fpic-hid-sections.cmake ├── clang-fpic-static-std-cxx14.cmake ├── clang-fpic-static-std.cmake ├── clang-fpic.cmake ├── clang-libcxx-fpic.cmake ├── clang-libcxx.cmake ├── clang-libcxx14-fpic.cmake ├── clang-libcxx14.cmake ├── clang-libcxx17-fpic.cmake ├── clang-libcxx17-static.cmake ├── clang-libcxx17.cmake ├── clang-libcxx98.cmake ├── clang-libstdcxx.cmake ├── clang-lto.cmake ├── clang-omp.cmake ├── clang-tidy-libcxx.cmake ├── clang-tidy.cmake ├── compiler ├── cl.cmake ├── clang-5.cmake ├── clang-omp.cmake ├── clang-tools.cmake ├── clang.cmake ├── egcc.cmake ├── emscripten.cmake ├── emscripten │ ├── glew │ │ └── glewConfig.cmake │ └── glfw3 │ │ └── glfw3Config.cmake ├── gcc-10.cmake ├── gcc-5.cmake ├── gcc-6.cmake ├── gcc-7.cmake ├── gcc-8.cmake ├── gcc-9.cmake ├── gcc-cross-compile-raspberry-pi.cmake ├── gcc-cross-compile-simple-layout.cmake ├── gcc-cross-compile.cmake ├── gcc.cmake ├── gcc48.cmake └── xcode.cmake ├── custom-libcxx.cmake ├── cxx11.cmake ├── cxx17.cmake ├── cxx20.cmake ├── cygwin.cmake ├── default.cmake ├── docs ├── Makefile ├── _fixme │ ├── Building-libcxx.md │ ├── Jenkins-(build-bot,-PR).md │ ├── Jenkins-(build-bot,-integration).md │ ├── Jenkins-(creating-user-on-linux-ubuntu).md │ ├── Jenkins-(creating-user-on-mac).md │ ├── Jenkins.md │ ├── Toolchain-list.md │ ├── Travis-CI-AppVeyor-support-table.md │ └── Used-variables.md ├── conf.py ├── index.rst ├── jenkins.sh ├── make.sh ├── requirements.txt ├── screens │ └── ios-team-id.png ├── spelling.txt ├── toolchains.rst └── toolchains │ ├── android.rst │ ├── android │ ├── developer-notes.rst │ └── old.rst │ ├── clang-omp.rst │ ├── gcc-musl.rst │ ├── ios.rst │ ├── ios │ ├── bundle-id.rst │ ├── errors │ │ ├── polly_ios_bundle_identifier.rst │ │ ├── polly_ios_development_team.rst │ │ └── signing-request-development-team.rst │ └── screens │ │ ├── 01_new_project.png │ │ ├── 02_single_view_app.png │ │ ├── 03_project_options.png │ │ ├── 04_bundle_identifier.png │ │ ├── 05_run_app.png │ │ └── bad_bundle_id.png │ ├── linux-mingw-w64.rst │ └── raspberry-pi.rst ├── emscripten-cxx11.cmake ├── emscripten-cxx14.cmake ├── emscripten-cxx17.cmake ├── emscripten-cxx20.cmake ├── examples ├── 01-executable │ ├── CMakeLists.txt │ └── main.cpp ├── 02-library │ ├── CMakeLists.txt │ ├── foo.cpp │ └── main.cpp ├── 03-shared-link │ ├── CMakeLists.txt │ ├── boo.cpp │ ├── foo.cpp │ └── main.cpp └── 04-framework │ ├── CMakeLists.txt │ └── foo.cpp ├── find └── FindLibcxx.cmake ├── flags ├── 32bit.cmake ├── arm-linux-gnueabihf.cmake ├── bitcode.cmake ├── c11.cmake ├── clang-tidy.cmake ├── cuda-cxx14.cmake ├── cxx11.cmake ├── cxx14.cmake ├── cxx17-gnu.cmake ├── cxx17.cmake ├── cxx20.cmake ├── cxx98.cmake ├── data-sections.cmake ├── fconcepts.cmake ├── fpic.cmake ├── function-sections.cmake ├── gnuxx11.cmake ├── gold.cmake ├── hardfloat.cmake ├── hidden.cmake ├── ios_nocodesign.cmake ├── lld.cmake ├── lto.cmake ├── mtune_cortex-a15.cmake ├── neon-vfpv4.cmake ├── neon.cmake ├── openwrt.cmake ├── sanitize_address.cmake ├── sanitize_leak.cmake ├── sanitize_memory.cmake ├── sanitize_thread.cmake ├── static-std.cmake ├── static.cmake ├── vs-cxx14.cmake ├── vs-cxx17.cmake ├── vs-mt.cmake ├── vs-nonpermissive.cmake ├── vs-platform-arm.cmake ├── vs-platform-arm64.cmake ├── vs-platform-win32.cmake ├── vs-platform-x64.cmake ├── vs-version-14-11.cmake ├── vs-z7.cmake └── vs-zw.cmake ├── gcc-10-cxx17-fpic.cmake ├── gcc-10-cxx17-gnu-fpic.cmake ├── gcc-10-cxx17.cmake ├── gcc-32bit-pic.cmake ├── gcc-32bit.cmake ├── gcc-4-8-c11.cmake ├── gcc-4-8-pic-hid-sections-cxx11-c11.cmake ├── gcc-4-8-pic-hid-sections.cmake ├── gcc-4-8-pic.cmake ├── gcc-4-8.cmake ├── gcc-5-cxx14-c11.cmake ├── gcc-5-pic-hid-sections-lto.cmake ├── gcc-5-pic-hid-sections.cmake ├── gcc-5.cmake ├── gcc-6-32bit-cxx14.cmake ├── gcc-7-cxx11-pic.cmake ├── gcc-7-cxx14-pic.cmake ├── gcc-7-cxx14.cmake ├── gcc-7-cxx17-concepts.cmake ├── gcc-7-cxx17-gnu.cmake ├── gcc-7-cxx17-pic.cmake ├── gcc-7-cxx17.cmake ├── gcc-7-pic-hid-sections-lto.cmake ├── gcc-7.cmake ├── gcc-8-cxx14-fpic.cmake ├── gcc-8-cxx14.cmake ├── gcc-8-cxx17-concepts.cmake ├── gcc-8-cxx17-fpic.cmake ├── gcc-8-cxx17-gnu-fpic.cmake ├── gcc-8-cxx17.cmake ├── gcc-9-cxx17-fpic.cmake ├── gcc-9-cxx17-gnu-fpic.cmake ├── gcc-9-cxx17.cmake ├── gcc-c11.cmake ├── gcc-cxx14-c11.cmake ├── gcc-cxx17-c11.cmake ├── gcc-cxx98.cmake ├── gcc-gold.cmake ├── gcc-hid-fpic.cmake ├── gcc-hid.cmake ├── gcc-lto.cmake ├── gcc-musl.cmake ├── gcc-ninja.cmake ├── gcc-pic-cxx17.cmake ├── gcc-pic-hid-sections-lto.cmake ├── gcc-pic-hid-sections.cmake ├── gcc-pic.cmake ├── gcc-static-std.cmake ├── gcc-static.cmake ├── gcc.cmake ├── ios-10-0-arm64-dep-8-0-hid-sections.cmake ├── ios-10-0-arm64.cmake ├── ios-10-0-armv7.cmake ├── ios-10-0-dep-8-0-hid-sections.cmake ├── ios-10-0-wo-armv7s.cmake ├── ios-10-0.cmake ├── ios-10-1-arm64-dep-8-0-hid-sections.cmake ├── ios-10-1-arm64.cmake ├── ios-10-1-armv7.cmake ├── ios-10-1-dep-8-0-hid-sections.cmake ├── ios-10-1-dep-8-0-libcxx-hid-sections-lto.cmake ├── ios-10-1-dep-8-0-libcxx-hid-sections.cmake ├── ios-10-1-wo-armv7s.cmake ├── ios-10-1.cmake ├── ios-10-2-dep-9-3-arm64.cmake ├── ios-10-2-dep-9-3-armv7.cmake ├── ios-10-2.cmake ├── ios-10-3-arm64.cmake ├── ios-10-3-armv7.cmake ├── ios-10-3-dep-8-0-bitcode.cmake ├── ios-10-3-dep-9-0-bitcode.cmake ├── ios-10-3-dep-9-3-i386-armv7.cmake ├── ios-10-3-dep-9-3-x86-64-arm64.cmake ├── ios-10-3-lto.cmake ├── ios-10-3.cmake ├── ios-11-0-dep-9-0-bitcode-cxx11.cmake ├── ios-11-0-dep-9-0-device-bitcode-cxx11.cmake ├── ios-11-0-dep-9-0-x86-64-arm64-bitcode-cxx11.cmake ├── ios-11-0.cmake ├── ios-11-1-dep-9-0-bitcode-cxx11.cmake ├── ios-11-1-dep-9-0-device-bitcode-cxx11.cmake ├── ios-11-2-dep-9-0-device-bitcode-cxx11.cmake ├── ios-11-2-dep-9-0-device-bitcode-nocxx.cmake ├── ios-11-2-dep-9-3-arm64-armv7.cmake ├── ios-11-3-dep-9-0-arm64.cmake ├── ios-11-3-dep-9-0-device-bitcode-cxx11.cmake ├── ios-11-3-dep-9-0-device-bitcode-cxx17.cmake ├── ios-11-3-dep-9-0-device-bitcode-nocxx.cmake ├── ios-11-3-dep-9-0-device-bitcode.cmake ├── ios-11-3-dep-9-3-arm64-armv7.cmake ├── ios-11-4-dep-8-0-arm64-armv7-hid-sections-lto-cxx11.cmake ├── ios-11-4-dep-8-0-arm64-hid-sections-lto-cxx11.cmake ├── ios-11-4-dep-9-0-device-bitcode-cxx11.cmake ├── ios-11-4-dep-9-0-device-bitcode-nocxx.cmake ├── ios-11-4-dep-9-3-arm64-armv7.cmake ├── ios-11-4-dep-9-3-arm64-hid-sections-lto-cxx11.cmake ├── ios-11-4-dep-9-3-arm64.cmake ├── ios-11-4-dep-9-3-armv7.cmake ├── ios-11-4-dep-9-3.cmake ├── ios-11-4-dep-9-4-arm64.cmake ├── ios-12-0-dep-11-0-arm64.cmake ├── ios-12-0-dep-9-0-device-bitcode-cxx11.cmake ├── ios-12-1-dep-11-0-arm64.cmake ├── ios-12-1-dep-12-0-arm64-cxx17.cmake ├── ios-12-1-dep-9-0-device-bitcode-cxx14.cmake ├── ios-12-1-dep-9-0-device-bitcode-cxx17.cmake ├── ios-12-1-dep-9-3-arm64-bitcode.cmake ├── ios-12-1-dep-9-3-arm64.cmake ├── ios-12-1-dep-9-3-armv7.cmake ├── ios-12-1-dep-9-3-x86-64-arm64.cmake ├── ios-12-1-dep-9-3.cmake ├── ios-12-2-dep-9-3-arm64.cmake ├── ios-12-3-dep-9-3-arm64.cmake ├── ios-13-0-dep-10-0-arm64-bitcode-cxx17.cmake ├── ios-13-0-dep-11-0-arm64-bitcode-cxx17.cmake ├── ios-13-0-dep-9-3-arm64-bitcode.cmake ├── ios-13-0-dep-9-3-arm64.cmake ├── ios-13-1-dep-9-0-arm64-bitcode-cxx17.cmake ├── ios-13-1-dep-9-0-arm64-cxx17.cmake ├── ios-13-1-dep-9-0-device-bitcode-cxx17.cmake ├── ios-13-2-dep-10-0-arm64-bitcode-cxx17.cmake ├── ios-13-2-dep-9-3-arm64-bitcode.cmake ├── ios-13-2-dep-9-3-arm64.cmake ├── ios-13-2-dep-9-3-armv7.cmake ├── ios-13-2-dep-9-3-armv7s.cmake ├── ios-13-2-dep-9-3-device-bitcode-cxx14.cmake ├── ios-13-2-dep-9-3-device-cxx14.cmake ├── ios-13-3-dep-9-3-arm64.cmake ├── ios-13-3-dep-9-3-armv7.cmake ├── ios-13-3-dep-9-3-armv7s.cmake ├── ios-13-3-dep-9-3-device-bitcode-cxx14.cmake ├── ios-13-3-dep-9-3-device-cxx14.cmake ├── ios-13-4-dep-10-0-device-bitcode-cxx17.cmake ├── ios-13-4-dep-10-0.cmake ├── ios-13-4-dep-9-0-arm64-bitcode-cxx17.cmake ├── ios-13-4-dep-9-0-arm64-cxx17.cmake ├── ios-13-4-dep-9-0-device-bitcode-cxx17.cmake ├── ios-13-4-dep-9-3-arm64.cmake ├── ios-13-4-dep-9-3-armv7.cmake ├── ios-13-4-dep-9-3-armv7s.cmake ├── ios-13-4-dep-9-3-device-bitcode-cxx14.cmake ├── ios-13-4-dep-9-3-device-cxx14.cmake ├── ios-13-5-dep-9-3-arm64.cmake ├── ios-13-5-dep-9-3-armv7.cmake ├── ios-13-5-dep-9-3-armv7s.cmake ├── ios-13-5-dep-9-3-device-bitcode-cxx14.cmake ├── ios-13-5-dep-9-3-device-cxx14.cmake ├── ios-13-6-dep-9-3-arm64.cmake ├── ios-13-6-dep-9-3-armv7.cmake ├── ios-13-6-dep-9-3-armv7s.cmake ├── ios-13-6-dep-9-3-device-bitcode-cxx14.cmake ├── ios-13-6-dep-9-3-device-cxx14.cmake ├── ios-14-0-dep-9-3-arm64.cmake ├── ios-14-0-dep-9-3-armv7.cmake ├── ios-14-0-dep-9-3-armv7s.cmake ├── ios-14-0-dep-9-3-device-bitcode-cxx14.cmake ├── ios-14-0-dep-9-3-device-cxx14.cmake ├── ios-14-2-dep-10-0-arm64.cmake ├── ios-14-2-dep-10-0-armv7.cmake ├── ios-14-2-dep-10-0-armv7s.cmake ├── ios-14-2-dep-10-0-device-bitcode-cxx14.cmake ├── ios-14-2-dep-10-0-device-cxx14.cmake ├── ios-14-3-dep-10-0-arm64.cmake ├── ios-14-3-dep-10-0-armv7.cmake ├── ios-14-3-dep-10-0-armv7s.cmake ├── ios-14-3-dep-10-0-device-bitcode-cxx14.cmake ├── ios-14-3-dep-10-0-device-cxx14.cmake ├── ios-14-4-dep-10-0-arm64.cmake ├── ios-14-4-dep-10-0-armv7.cmake ├── ios-14-4-dep-10-0-armv7s.cmake ├── ios-14-4-dep-10-0-device-bitcode-cxx14.cmake ├── ios-14-4-dep-10-0-device-cxx14.cmake ├── ios-7-0.cmake ├── ios-7-1.cmake ├── ios-8-0.cmake ├── ios-8-1.cmake ├── ios-8-2-arm64-hid.cmake ├── ios-8-2-arm64.cmake ├── ios-8-2-cxx98.cmake ├── ios-8-2-i386-arm64.cmake ├── ios-8-2.cmake ├── ios-8-4-arm64.cmake ├── ios-8-4-armv7.cmake ├── ios-8-4-armv7s.cmake ├── ios-8-4-hid.cmake ├── ios-8-4.cmake ├── ios-9-0-armv7.cmake ├── ios-9-0-dep-7-0-armv7.cmake ├── ios-9-0-i386-armv7.cmake ├── ios-9-0-wo-armv7s.cmake ├── ios-9-0.cmake ├── ios-9-1-arm64.cmake ├── ios-9-1-armv7.cmake ├── ios-9-1-dep-7-0-armv7.cmake ├── ios-9-1-dep-8-0-hid.cmake ├── ios-9-1-hid.cmake ├── ios-9-1.cmake ├── ios-9-2-arm64.cmake ├── ios-9-2-armv7.cmake ├── ios-9-2-hid-sections.cmake ├── ios-9-2-hid.cmake ├── ios-9-2.cmake ├── ios-9-3-arm64.cmake ├── ios-9-3-armv7.cmake ├── ios-9-3-wo-armv7s.cmake ├── ios-9-3.cmake ├── ios-arm64-cxx17.cmake ├── ios-arm64-cxx20.cmake ├── ios-arm64.cmake ├── ios-bitcode.cmake ├── ios-cxx17.cmake ├── ios-cxx20.cmake ├── ios-dep-10-0-bitcode-cxx17.cmake ├── ios-dep-11-0-bitcode-cxx17.cmake ├── ios-dep-12-0-bitcode-cxx17.cmake ├── ios-dep-8-0-arm64-armv7-hid-sections-cxx11.cmake ├── ios-dep-8-0-arm64-armv7-hid-sections-lto-cxx11.cmake ├── ios-dep-8-0-arm64-cxx11.cmake ├── ios-nocodesign-10-0-arm64.cmake ├── ios-nocodesign-10-0-armv7.cmake ├── ios-nocodesign-10-0-wo-armv7s.cmake ├── ios-nocodesign-10-0.cmake ├── ios-nocodesign-10-1-arm64-dep-9-0-device-libcxx-hid-sections-lto.cmake ├── ios-nocodesign-10-1-arm64-dep-9-0-device-libcxx-hid-sections.cmake ├── ios-nocodesign-10-1-arm64.cmake ├── ios-nocodesign-10-1-armv7.cmake ├── ios-nocodesign-10-1-dep-8-0-device-libcxx-hid-sections-lto.cmake ├── ios-nocodesign-10-1-dep-8-0-libcxx-hid-sections-lto.cmake ├── ios-nocodesign-10-1-dep-9-0-device-libcxx-hid-sections-lto.cmake ├── ios-nocodesign-10-1-wo-armv7s.cmake ├── ios-nocodesign-10-1.cmake ├── ios-nocodesign-10-2.cmake ├── ios-nocodesign-10-3-arm64-dep-9-0-device-libcxx-hid-sections.cmake ├── ios-nocodesign-10-3-arm64.cmake ├── ios-nocodesign-10-3-armv7.cmake ├── ios-nocodesign-10-3-cxx14.cmake ├── ios-nocodesign-10-3-dep-9-0-bitcode.cmake ├── ios-nocodesign-10-3-wo-armv7s.cmake ├── ios-nocodesign-10-3.cmake ├── ios-nocodesign-11-0-arm64-dep-9-0-device-libcxx-hid-sections.cmake ├── ios-nocodesign-11-0-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-11-0.cmake ├── ios-nocodesign-11-1-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-11-1-dep-9-0-wo-armv7s-bitcode-cxx11.cmake ├── ios-nocodesign-11-1.cmake ├── ios-nocodesign-11-2-dep-8-0-wo-armv7s-bitcode-cxx11.cmake ├── ios-nocodesign-11-2-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-11-2-dep-9-3-arm64-armv7.cmake ├── ios-nocodesign-11-2-dep-9-3-arm64.cmake ├── ios-nocodesign-11-2-dep-9-3-armv7.cmake ├── ios-nocodesign-11-2-dep-9-3-i386-armv7.cmake ├── ios-nocodesign-11-2-dep-9-3.cmake ├── ios-nocodesign-11-2.cmake ├── ios-nocodesign-11-3-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-11-3-dep-9-3-arm64.cmake ├── ios-nocodesign-11-3-dep-9-3-armv7.cmake ├── ios-nocodesign-11-3-dep-9-3.cmake ├── ios-nocodesign-11-4-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-11-4-dep-9-3-arm64.cmake ├── ios-nocodesign-11-4-dep-9-3-armv7.cmake ├── ios-nocodesign-11-4-dep-9-3.cmake ├── ios-nocodesign-12-0-dep-10-0-bitcode-cxx11.cmake ├── ios-nocodesign-12-0-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-12-1-dep-9-0-bitcode-cxx11.cmake ├── ios-nocodesign-12-1-dep-9-3-armv7.cmake ├── ios-nocodesign-12-1.cmake ├── ios-nocodesign-13-0-dep-9-3-arm64.cmake ├── ios-nocodesign-13-1-dep-9-0-arm64-cxx14.cmake ├── ios-nocodesign-13-1-dep-9-0-arm64-cxx17.cmake ├── ios-nocodesign-13-1-dep-9-0-armv7-cxx14.cmake ├── ios-nocodesign-13-1-dep-9-0-armv7-cxx17.cmake ├── ios-nocodesign-13-2-dep-9-3-arm64.cmake ├── ios-nocodesign-13-2-dep-9-3-armv7.cmake ├── ios-nocodesign-13-2-dep-9-3-armv7s.cmake ├── ios-nocodesign-13-2-dep-9-3-device-cxx11.cmake ├── ios-nocodesign-13-2-dep-9-3-device.cmake ├── ios-nocodesign-13-2-dep-9-3.cmake ├── ios-nocodesign-13-5-dep-9-3-arm64.cmake ├── ios-nocodesign-13-5-dep-9-3-armv7.cmake ├── ios-nocodesign-13-5-dep-9-3-armv7s.cmake ├── ios-nocodesign-13-5-dep-9-3-device-cxx11.cmake ├── ios-nocodesign-13-5-dep-9-3-device.cmake ├── ios-nocodesign-13-5-dep-9-3.cmake ├── ios-nocodesign-13-6-dep-9-3-arm64.cmake ├── ios-nocodesign-13-6-dep-9-3-armv7.cmake ├── ios-nocodesign-13-6-dep-9-3-armv7s.cmake ├── ios-nocodesign-13-6-dep-9-3-device-cxx11.cmake ├── ios-nocodesign-13-6-dep-9-3-device.cmake ├── ios-nocodesign-13-6-dep-9-3.cmake ├── ios-nocodesign-14-0-dep-9-3-arm64.cmake ├── ios-nocodesign-14-0-dep-9-3-armv7.cmake ├── ios-nocodesign-14-0-dep-9-3-armv7s.cmake ├── ios-nocodesign-14-0-dep-9-3-device-cxx11.cmake ├── ios-nocodesign-14-0-dep-9-3-device.cmake ├── ios-nocodesign-14-0-dep-9-3.cmake ├── ios-nocodesign-14-2-dep-10-0-arm64.cmake ├── ios-nocodesign-14-2-dep-10-0-armv7.cmake ├── ios-nocodesign-14-2-dep-10-0-armv7s.cmake ├── ios-nocodesign-14-2-dep-10-0-device-cxx11.cmake ├── ios-nocodesign-14-2-dep-10-0-device.cmake ├── ios-nocodesign-14-2-dep-10-0.cmake ├── ios-nocodesign-14-3-dep-10-0-arm64.cmake ├── ios-nocodesign-14-3-dep-10-0-armv7.cmake ├── ios-nocodesign-14-3-dep-10-0-armv7s.cmake ├── ios-nocodesign-14-3-dep-10-0-device-cxx11.cmake ├── ios-nocodesign-14-3-dep-10-0-device.cmake ├── ios-nocodesign-14-3-dep-10-0.cmake ├── ios-nocodesign-14-4-dep-10-0-arm64.cmake ├── ios-nocodesign-14-4-dep-10-0-armv7.cmake ├── ios-nocodesign-14-4-dep-10-0-armv7s.cmake ├── ios-nocodesign-14-4-dep-10-0-device-cxx11.cmake ├── ios-nocodesign-14-4-dep-10-0-device.cmake ├── ios-nocodesign-14-4-dep-10-0.cmake ├── ios-nocodesign-15-5-arm64-cxx17.cmake ├── ios-nocodesign-8-1.cmake ├── ios-nocodesign-8-4.cmake ├── ios-nocodesign-9-1-arm64.cmake ├── ios-nocodesign-9-1-armv7.cmake ├── ios-nocodesign-9-1.cmake ├── ios-nocodesign-9-2-arm64.cmake ├── ios-nocodesign-9-2-armv7.cmake ├── ios-nocodesign-9-2.cmake ├── ios-nocodesign-9-3-arm64.cmake ├── ios-nocodesign-9-3-armv7.cmake ├── ios-nocodesign-9-3-device-hid-sections.cmake ├── ios-nocodesign-9-3-device.cmake ├── ios-nocodesign-9-3-wo-armv7s.cmake ├── ios-nocodesign-9-3.cmake ├── ios-nocodesign-arm64-cxx17.cmake ├── ios-nocodesign-arm64-cxx20.cmake ├── ios-nocodesign-arm64.cmake ├── ios-nocodesign-armv7.cmake ├── ios-nocodesign-cxx17.cmake ├── ios-nocodesign-cxx20.cmake ├── ios-nocodesign-dep-9-0-cxx14.cmake ├── ios-nocodesign-hid-sections.cmake ├── ios-nocodesign-wo-armv7s.cmake ├── ios-nocodesign.cmake ├── ios.cmake ├── libcxx-fpic-hid-sections.cmake ├── libcxx-hid-fpic.cmake ├── libcxx-hid-sections.cmake ├── libcxx-hid.cmake ├── libcxx-no-sdk.cmake ├── libcxx.cmake ├── libcxx14.cmake ├── library └── std │ ├── libcxx.cmake │ ├── libstdcxx.cmake │ └── nolibs.cmake ├── linux-gcc-armhf-neon-vfpv4.cmake ├── linux-gcc-armhf-neon.cmake ├── linux-gcc-armhf.cmake ├── linux-gcc-jetson-tk1.cmake ├── linux-gcc-x64.cmake ├── linux-mingw-w32-cxx14.cmake ├── linux-mingw-w32.cmake ├── linux-mingw-w64-cxx14.cmake ├── linux-mingw-w64-cxx98.cmake ├── linux-mingw-w64-gnuxx11.cmake ├── linux-mingw-w64.cmake ├── mingw-c11.cmake ├── mingw-cxx14.cmake ├── mingw-cxx17.cmake ├── mingw-cxx20.cmake ├── mingw.cmake ├── msys-cxx14.cmake ├── msys-cxx17.cmake ├── msys-cxx20.cmake ├── msys.cmake ├── ninja-clang-cxx17-fpic.cmake ├── ninja-gcc-7-cxx17-concepts.cmake ├── ninja-gcc-8-cxx17-concepts.cmake ├── ninja-gcc-cxx17-fpic.cmake ├── ninja-vs-12-2013-win64.cmake ├── ninja-vs-14-2015-win64.cmake ├── ninja-vs-15-2017-win64-cxx17-nonpermissive.cmake ├── ninja-vs-15-2017-win64-cxx17.cmake ├── ninja-vs-15-2017-win64.cmake ├── ninja-vs-16-2019-win64-cxx17-nonpermissive.cmake ├── ninja-vs-16-2019-win64-cxx17.cmake ├── ninja-vs-16-2019-win64.cmake ├── ninja-vs-win64-cxx17.cmake ├── nmake-vs-12-2013-win64.cmake ├── nmake-vs-12-2013.cmake ├── nmake-vs-15-2017-win64-cxx17-nonpermissive.cmake ├── nmake-vs-15-2017-win64-cxx17.cmake ├── nmake-vs-15-2017-win64.cmake ├── nmake-vs-16-2019-win64-cxx17-nonpermissive.cmake ├── nmake-vs-16-2019-win64-cxx17.cmake ├── nmake-vs-16-2019-win64.cmake ├── openbsd-egcc-cxx11-static-std.cmake ├── os ├── android.cmake ├── cygwin.cmake ├── iphone-default-sdk.cmake ├── iphone.cmake ├── osx-default-sdk.cmake ├── osx.cmake ├── raspberry-pi-hardfloat.cmake ├── raspberry-pi1.cmake ├── raspberry-pi2.cmake ├── raspberry-pi3.cmake ├── rpi-sysroot.cmake └── vc-mdd-android.cmake ├── osx-10-10-dep-10-7.cmake ├── osx-10-10-dep-10-9-make.cmake ├── osx-10-10.cmake ├── osx-10-11-hid-sections-lto.cmake ├── osx-10-11-hid-sections.cmake ├── osx-10-11-lto.cmake ├── osx-10-11-make.cmake ├── osx-10-11-sanitize-address.cmake ├── osx-10-11.cmake ├── osx-10-12-cxx14.cmake ├── osx-10-12-cxx17.cmake ├── osx-10-12-cxx98.cmake ├── osx-10-12-dep-10-10-lto.cmake ├── osx-10-12-dep-10-10.cmake ├── osx-10-12-hid-sections.cmake ├── osx-10-12-lto.cmake ├── osx-10-12-make.cmake ├── osx-10-12-ninja.cmake ├── osx-10-12-sanitize-address-hid-sections.cmake ├── osx-10-12-sanitize-address.cmake ├── osx-10-12.cmake ├── osx-10-13-cxx14.cmake ├── osx-10-13-cxx17.cmake ├── osx-10-13-dep-10-10-cxx14.cmake ├── osx-10-13-dep-10-10-cxx17.cmake ├── osx-10-13-dep-10-10.cmake ├── osx-10-13-dep-10-12-cxx14.cmake ├── osx-10-13-dep-10-12-cxx17.cmake ├── osx-10-13-dep-10-12.cmake ├── osx-10-13-i386-cxx14.cmake ├── osx-10-13-make-cxx14.cmake ├── osx-10-13.cmake ├── osx-10-14-cxx14.cmake ├── osx-10-14-cxx17.cmake ├── osx-10-14-dep-10-10-cxx14.cmake ├── osx-10-14-dep-10-10-cxx17.cmake ├── osx-10-14-dep-10-10.cmake ├── osx-10-14-dep-10-12-cxx14.cmake ├── osx-10-14-dep-10-12-cxx17.cmake ├── osx-10-14-dep-10-12.cmake ├── osx-10-14.cmake ├── osx-10-15-cxx17.cmake ├── osx-10-15-dep-10-10-cxx14.cmake ├── osx-10-15-dep-10-10-cxx17.cmake ├── osx-10-15-dep-10-10.cmake ├── osx-10-15-dep-10-12-cxx17.cmake ├── osx-10-15-make-cxx14.cmake ├── osx-10-15.cmake ├── osx-10-7.cmake ├── osx-10-8.cmake ├── osx-10-9.cmake ├── osx-11-0-arch-universal2.cmake ├── osx-11-0-cxx17.cmake ├── osx-11-0-cxx20.cmake ├── osx-11-0-dep-10-10-cxx17.cmake ├── osx-11-0.cmake ├── osx-11-1-arch-universal2-cxx17.cmake ├── osx-11-1-cxx17.cmake ├── osx-11-1-cxx20.cmake ├── osx-11-1-dep-10-10-cxx17.cmake ├── osx-11-1-dep-10-14-cxx17.cmake ├── osx-11-1.cmake ├── osx-12-3-arch-universal2-cxx17.cmake ├── osx-12-3-arch-universal2-cxx20.cmake ├── osx-arch-universal2-cxx17.cmake ├── osx-arch-universal2-cxx20.cmake ├── osx-arch-universal2.cmake ├── osx-cxx17.cmake ├── osx-cxx20.cmake ├── osx-make-cxx17.cmake ├── osx-make-cxx20.cmake ├── osx-make.cmake ├── osx.cmake ├── raspberrypi1-cxx11-pic-static-std.cmake ├── raspberrypi1-cxx11-pic.cmake ├── raspberrypi1-cxx14-pic-static-std.cmake ├── raspberrypi2-cxx11-pic.cmake ├── raspberrypi2-cxx11.cmake ├── raspberrypi3-clang-cxx11.cmake ├── raspberrypi3-clang-cxx14-pic.cmake ├── raspberrypi3-clang-cxx14.cmake ├── raspberrypi3-cxx11.cmake ├── raspberrypi3-cxx14.cmake ├── raspberrypi3-gcc-pic-hid-sections.cmake ├── sanitize-address-cxx17-pic.cmake ├── sanitize-address-cxx17.cmake ├── sanitize-address.cmake ├── sanitize-leak-cxx17-pic.cmake ├── sanitize-leak-cxx17.cmake ├── sanitize-leak.cmake ├── sanitize-memory.cmake ├── sanitize-thread-cxx17-pic.cmake ├── sanitize-thread-cxx17.cmake ├── sanitize-thread.cmake ├── scripts ├── Info.plist ├── NoCodeSign.xcconfig ├── clang-analyze.sh └── clangxx-analyze.sh ├── utilities ├── polly_add_cache_flag.cmake ├── polly_clear_environment_variables.cmake ├── polly_common.cmake ├── polly_fatal_error.cmake ├── polly_init.cmake ├── polly_ios_bundle_identifier.cmake ├── polly_ios_development_team.cmake ├── polly_module_path.cmake ├── polly_status_debug.cmake └── polly_status_print.cmake ├── vs-10-2010.cmake ├── vs-11-2012-arm.cmake ├── vs-11-2012-win64.cmake ├── vs-11-2012.cmake ├── vs-12-2013-arm.cmake ├── vs-12-2013-mt.cmake ├── vs-12-2013-win64.cmake ├── vs-12-2013-xp.cmake ├── vs-12-2013.cmake ├── vs-14-2015-arm.cmake ├── vs-14-2015-sdk-8-1.cmake ├── vs-14-2015-win64-cxx17.cmake ├── vs-14-2015-win64-sdk-8-1-cxx17.cmake ├── vs-14-2015-win64-sdk-8-1.cmake ├── vs-14-2015-win64.cmake ├── vs-14-2015.cmake ├── vs-15-2017-arm.cmake ├── vs-15-2017-arm64.cmake ├── vs-15-2017-cxx14-mt.cmake ├── vs-15-2017-cxx17.cmake ├── vs-15-2017-mt.cmake ├── vs-15-2017-store-10-zw.cmake ├── vs-15-2017-win64-cxx14-mt.cmake ├── vs-15-2017-win64-cxx14.cmake ├── vs-15-2017-win64-cxx17-nonpermissive.cmake ├── vs-15-2017-win64-cxx17.cmake ├── vs-15-2017-win64-llvm-vs2014.cmake ├── vs-15-2017-win64-llvm.cmake ├── vs-15-2017-win64-mt.cmake ├── vs-15-2017-win64-store-10-cxx17.cmake ├── vs-15-2017-win64-store-10-zw.cmake ├── vs-15-2017-win64-version-14-11.cmake ├── vs-15-2017-win64-z7.cmake ├── vs-15-2017-win64.cmake ├── vs-15-2017.cmake ├── vs-16-2019-arm.cmake ├── vs-16-2019-arm64.cmake ├── vs-16-2019-cxx14.cmake ├── vs-16-2019-cxx17.cmake ├── vs-16-2019-llvm-cxx17.cmake ├── vs-16-2019-win64-cxx14.cmake ├── vs-16-2019-win64-cxx17-cuda-cxx14.cmake ├── vs-16-2019-win64-cxx17.cmake ├── vs-16-2019-win64-llvm-cxx17.cmake ├── vs-16-2019-win64-sdk-10-0-18362-0-cxx17.cmake ├── vs-16-2019-win64-store-10-cxx17.cmake ├── vs-16-2019-win64.cmake ├── vs-16-2019.cmake ├── vs-17-2022-win64-cxx17.cmake ├── vs-8-2005.cmake ├── vs-9-2008.cmake ├── xcode-cxx17.cmake ├── xcode-cxx20.cmake ├── xcode-cxx98.cmake ├── xcode-gcc.cmake ├── xcode-hid-sections.cmake ├── xcode-nocxx.cmake ├── xcode-sections.cmake └── xcode.cmake /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | */.DS_Store 3 | */*/.DS_Store 4 | *.*~ 5 | 6 | docs/_build 7 | docs/activate.sh 8 | 9 | bin/detail/__pycache__ 10 | *.pyc 11 | /.vs 12 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "docs/rtfd-css"] 2 | path = docs/rtfd-css 3 | url = https://github.com/cpp-pm/rtfd-css 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please send a patch as a pull request against the branch master. 2 | 3 | Also try to follow general notes from here: 4 | * https://github.com/ruslo/hunter/wiki/dev.contribution 5 | 6 | Add new toolchain to toolchain table: 7 | * https://github.com/ruslo/polly/blob/master/bin/detail/toolchain_table.py 8 | -------------------------------------------------------------------------------- /analyze-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_ANALYZE_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_ANALYZE_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang static analyzer / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 20 | 21 | set(CMAKE_CXX_COMPILER "${CMAKE_CURRENT_LIST_DIR}/scripts/clangxx-analyze.sh") 22 | set(CMAKE_C_COMPILER "${CMAKE_CURRENT_LIST_DIR}/scripts/clang-analyze.sh") 23 | 24 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "analyze") 25 | 26 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 27 | -------------------------------------------------------------------------------- /analyze.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_ANALYZE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_ANALYZE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang static analyzer / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 20 | 21 | set(CMAKE_CXX_COMPILER "${CMAKE_CURRENT_LIST_DIR}/scripts/clangxx-analyze.sh") 22 | set(CMAKE_C_COMPILER "${CMAKE_CURRENT_LIST_DIR}/scripts/clang-analyze.sh") 23 | 24 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "analyze") 25 | 26 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 27 | -------------------------------------------------------------------------------- /bin/build.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # Copyright (c) 2014-2015, Ruslan Baratov 4 | # All rights reserved. 5 | 6 | # Note: build.py has been renamed to polly.py. 7 | 8 | from os.path import abspath, dirname, join 9 | exec(open(join(dirname(abspath(__file__)), 'polly.py'), 'r').read()) 10 | -------------------------------------------------------------------------------- /bin/detail/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/bin/detail/__init__.py -------------------------------------------------------------------------------- /bin/detail/ios_dev_root.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import os 5 | import re 6 | 7 | def get(ios_version): 8 | dev_dir = re.sub(r'\.', '_', ios_version) 9 | dev_dir = 'IOS_{}_DEVELOPER_DIR'.format(dev_dir) 10 | return os.getenv(dev_dir) 11 | -------------------------------------------------------------------------------- /bin/detail/osx_dev_root.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import os 5 | import re 6 | 7 | def get(osx_version): 8 | dev_dir = re.sub(r'\.', '_', osx_version) 9 | dev_dir = 'OSX_{}_DEVELOPER_DIR'.format(dev_dir) 10 | return os.getenv(dev_dir) 11 | -------------------------------------------------------------------------------- /bin/detail/pack_command.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import os 5 | import subprocess 6 | 7 | import detail.call 8 | 9 | def run(config, logging, cpack_generator, cpack_bin, cmake_bin): 10 | pack_command = [cpack_bin] 11 | if os.name == 'nt': 12 | # use full path to cpack since Chocolatey pack command has the same name 13 | cmake_list = subprocess.check_output( 14 | ['where', cmake_bin], universal_newlines=True 15 | ) 16 | cmake_path = cmake_list.split('\n')[0] 17 | cpack_path = os.path.join(os.path.dirname(cmake_path), cpack_bin) 18 | pack_command = [cpack_path] 19 | if config: 20 | pack_command.append('-C') 21 | pack_command.append(config) 22 | pack_command.append('--verbose') 23 | if cpack_generator: 24 | pack_command.append('-G{}'.format(cpack_generator)) 25 | detail.call.call(pack_command, logging) 26 | -------------------------------------------------------------------------------- /bin/detail/rmtree.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | # Call native tools to remove directory recursively. Use this command instead 5 | # of shutils.rmtree because of different glitches like impossibility to remove 6 | # directory with files with long path on Windows. 7 | 8 | import os 9 | import subprocess 10 | import sys 11 | 12 | def rmtree(dir_path): 13 | if not os.path.exists(dir_path): 14 | return 15 | print("Remove directory: {}".format(dir_path)) 16 | if os.name == 'nt': 17 | subprocess.check_call(['cmd', '/c', 'rmdir', dir_path, '/S', '/Q']) 18 | else: 19 | subprocess.check_call(['rm', '-rf', dir_path]) 20 | 21 | # sanity check 22 | if os.path.exists(dir_path): 23 | sys.exit("Directory removing failed ({})".format(dir_path)) 24 | -------------------------------------------------------------------------------- /bin/detail/target.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import sys 5 | 6 | class Target: 7 | def __init__(self): 8 | self.name = '' 9 | 10 | def add(self, condition, name): 11 | if not condition: 12 | return 13 | if not name: 14 | sys.exit('No name for target') 15 | if not self.name: 16 | self.name = name 17 | return 18 | if self.name == name: 19 | return 20 | sys.exit( 21 | "Can't add target `{}` since another target defined: `{}`".format( 22 | name, self.name 23 | ) 24 | ) 25 | 26 | def args(self): 27 | if self.name: 28 | return ['--target', self.name] 29 | else: 30 | return [] 31 | -------------------------------------------------------------------------------- /bin/detail/test_command.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import detail.call 5 | 6 | def run(build_dir, config, logging, test_xml, verbose, timeout, ctest_bin): 7 | test_command = [ctest_bin] 8 | if test_xml: 9 | test_command.append('-T') 10 | test_command.append(test_xml) 11 | if config: 12 | test_command.append('-C') 13 | test_command.append(config) 14 | if verbose: 15 | test_command.append('-VV') 16 | if timeout: 17 | test_command.append('--timeout') 18 | test_command.append(str(timeout)) 19 | print('Run tests') 20 | detail.call.call(test_command, logging) 21 | -------------------------------------------------------------------------------- /bin/detail/toolchain_name.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | def get(args_toolchain): 5 | if args_toolchain: 6 | return args_toolchain 7 | else: 8 | return 'default' 9 | -------------------------------------------------------------------------------- /bin/detail/verify_mingw_path.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import os 5 | import sys 6 | 7 | def verify(mingw_path): 8 | if not mingw_path: 9 | sys.exit( 10 | "Please set environment variable MINGW_PATH " 11 | "to directory with mingw32-make.exe" 12 | ) 13 | if not os.path.isdir(mingw_path): 14 | sys.exit("MINGW_PATH({}) is not a directory".format(mingw_path)) 15 | 16 | mingw_make = os.path.join(mingw_path, 'mingw32-make.exe') 17 | if not os.path.isfile(mingw_make): 18 | sys.exit( 19 | "File mingw32-make.exe not found in " 20 | "directory `{}` (MINGW_PATH environment variable)".format(mingw_path) 21 | ) 22 | -------------------------------------------------------------------------------- /bin/detail/verify_msys_path.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | import os 5 | import sys 6 | 7 | def verify(msys_path): 8 | if not msys_path: 9 | sys.exit( 10 | "Please set environment variable MSYS_PATH " 11 | "to directory with make.exe" 12 | ) 13 | make_found = False 14 | for path in msys_path.split(';'): 15 | if not os.path.isdir(path): 16 | sys.exit( 17 | "One of the MSYS_PATH components is not a directory: {} ". 18 | format(path) 19 | ) 20 | msys_make = os.path.join(path, 'make.exe') 21 | if os.path.isfile(msys_make): 22 | make_found = True 23 | 24 | if not make_found: 25 | sys.exit( 26 | "File make.exe not found in " 27 | "directories `{}` (MSYS_PATH environment variable)".format(msys_path) 28 | ) 29 | -------------------------------------------------------------------------------- /bin/detail/win32.py: -------------------------------------------------------------------------------- 1 | import ctypes 2 | from ctypes import wintypes 3 | 4 | _GetShortPathNameW = ctypes.windll.kernel32.GetShortPathNameW 5 | _GetShortPathNameW.argtypes = [wintypes.LPCWSTR, wintypes.LPWSTR, wintypes.DWORD] 6 | _GetShortPathNameW.restype = wintypes.DWORD 7 | 8 | def get_short_path_name(long_name): 9 | """ 10 | Gets the short path name of a given long path. 11 | http://stackoverflow.com/a/23598461/200291 12 | """ 13 | output_buf_size = 0 14 | while True: 15 | output_buf = ctypes.create_unicode_buffer(output_buf_size) 16 | needed = _GetShortPathNameW(long_name, output_buf, output_buf_size) 17 | if output_buf_size >= needed: 18 | return output_buf.value 19 | else: 20 | output_buf_size = needed 21 | -------------------------------------------------------------------------------- /bin/polly: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | from os.path import realpath, dirname, join 4 | from sys import argv 5 | 6 | polly_py = join(dirname(realpath(argv[0])), 'polly.py') 7 | exec(open(polly_py, 'r').read()) 8 | -------------------------------------------------------------------------------- /bin/polly.bat: -------------------------------------------------------------------------------- 1 | python %~dp0\\polly.py %* 2 | -------------------------------------------------------------------------------- /clang-5-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_5_CXX14_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_5_CXX14_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang 5 / c++14 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang-5.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | -------------------------------------------------------------------------------- /clang-5-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_5_CXX17_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_5_CXX17_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang 5 / c++17 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang-5.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | -------------------------------------------------------------------------------- /clang-5.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_5_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_5_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang 5 / c++11 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang-5.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | -------------------------------------------------------------------------------- /clang-cxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2018, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_CXX11_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_CXX11_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / c++11 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | -------------------------------------------------------------------------------- /clang-cxx14-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2018, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_CXX14_PIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_CXX14_PIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / c++14 support / PIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | -------------------------------------------------------------------------------- /clang-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2018, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_CXX14_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_CXX14_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / c++14 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | -------------------------------------------------------------------------------- /clang-cxx17-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2019, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_CXX17_PIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_CXX17_PIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / c++17 support / PIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | -------------------------------------------------------------------------------- /clang-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2018, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_CXX17_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_CXX17_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / c++17 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | -------------------------------------------------------------------------------- /clang-cxx20.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2019, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_CXX20_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_CLANG_CXX20_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / c++20 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx20.cmake") 22 | -------------------------------------------------------------------------------- /clang-fpic-static-std-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBSTDCXX_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBSTDCXX_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / GNU Standard C++ Library (libstdc++) / c++14 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libstdcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static-std.cmake") 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 26 | -------------------------------------------------------------------------------- /clang-fpic-static-std.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBSTDCXX_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBSTDCXX_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / GNU Standard C++ Library (libstdc++) / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libstdcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static-std.cmake") 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 26 | -------------------------------------------------------------------------------- /clang-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBSTDCXX_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBSTDCXX_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / GNU Standard C++ Library (libstdc++) / c++11 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libstdcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 25 | -------------------------------------------------------------------------------- /clang-libcxx-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 25 | -------------------------------------------------------------------------------- /clang-libcxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /clang-libcxx14-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX14_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX14_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++14 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 25 | -------------------------------------------------------------------------------- /clang-libcxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX14_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX14_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++14 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /clang-libcxx17-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX17_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX17_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++17 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 25 | -------------------------------------------------------------------------------- /clang-libcxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX17_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX17_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /clang-libcxx98.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX98_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX98_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++98 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx98.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /clang-libstdcxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBSTDCXX_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBSTDCXX_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / GNU Standard C++ Library (libstdc++) / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libstdcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /clang-lto.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LTO_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LTO_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support / LTO" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/lto.cmake") 23 | -------------------------------------------------------------------------------- /clang-omp.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_OMP_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CLANG_OMP_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / OpenMP / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang-omp.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /clang-tidy-libcxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_TIDY_LIBCXX_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CLANG_TIDY_LIBCXX_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang tidy / LLVM Standard C++ Library (libc++) / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/clang-tidy.cmake") 23 | -------------------------------------------------------------------------------- /clang-tidy.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_TIDY_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CLANG_TIDY_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang tidy / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/clang-tidy.cmake") 22 | -------------------------------------------------------------------------------- /compiler/cl.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_CL_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_CL_CMAKE_ 1) 8 | endif() 9 | 10 | find_program(CMAKE_C_COMPILER cl) 11 | find_program(CMAKE_CXX_COMPILER cl) 12 | 13 | if(NOT CMAKE_C_COMPILER) 14 | polly_fatal_error("cl not found") 15 | endif() 16 | 17 | if(NOT CMAKE_CXX_COMPILER) 18 | polly_fatal_error("cl not found") 19 | endif() 20 | 21 | set( 22 | CMAKE_C_COMPILER 23 | "${CMAKE_C_COMPILER}" 24 | CACHE 25 | STRING 26 | "C compiler" 27 | FORCE 28 | ) 29 | 30 | set( 31 | CMAKE_CXX_COMPILER 32 | "${CMAKE_CXX_COMPILER}" 33 | CACHE 34 | STRING 35 | "C++ compiler" 36 | FORCE 37 | ) 38 | -------------------------------------------------------------------------------- /compiler/emscripten.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_EMSCRIPTEN_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_EMSCRIPTEN_CMAKE 1) 8 | endif() 9 | 10 | include(polly_fatal_error) 11 | 12 | string(COMPARE EQUAL "$ENV{EMSCRIPTEN}" "" _is_empty) 13 | if(_is_empty) 14 | polly_fatal_error( 15 | "EMSCRIPTEN environment variable not set. Emscripten environment variables are in emsdk_env.sh" 16 | ) 17 | endif() 18 | 19 | include("$ENV{EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake") 20 | list(APPEND CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_LIST_DIR}/emscripten") 21 | 22 | -------------------------------------------------------------------------------- /compiler/emscripten/glew/glewConfig.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman, Ruslan Baratov 2 | # Emscripten CMake target to emulate native glew::glew target 3 | if(NOT TARGET glew::glew) 4 | add_library(glew::glew INTERFACE IMPORTED) 5 | set_target_properties( 6 | glew::glew 7 | PROPERTIES 8 | INTERFACE_COMPILE_DEFINITIONS "GLEWMX" 9 | INTERFACE_LINK_LIBRARIES "-s LEGACY_GL_EMULATION=1" 10 | ) 11 | endif() 12 | -------------------------------------------------------------------------------- /compiler/emscripten/glfw3/glfw3Config.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman 2 | # Emscripten CMake target to emulate native glfw target 3 | if(NOT TARGET glfw) 4 | add_library(glfw INTERFACE IMPORTED) 5 | set_target_properties( 6 | glfw 7 | PROPERTIES 8 | INTERFACE_LINK_LIBRARIES "-s LEGACY_GL_EMULATION=1;-s USE_GLFW=3" 9 | ) 10 | endif() 11 | -------------------------------------------------------------------------------- /compiler/gcc-10.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, David Hirvonen, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_GCC_10_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_GCC_10_CMAKE_ 1) 8 | endif() 9 | 10 | find_program(CMAKE_C_COMPILER gcc-10) 11 | find_program(CMAKE_CXX_COMPILER g++-10) 12 | 13 | if(NOT CMAKE_C_COMPILER) 14 | polly_fatal_error("gcc-10 not found") 15 | endif() 16 | 17 | if(NOT CMAKE_CXX_COMPILER) 18 | polly_fatal_error("g++-10 not found") 19 | endif() 20 | 21 | set( 22 | CMAKE_C_COMPILER 23 | "${CMAKE_C_COMPILER}" 24 | CACHE 25 | STRING 26 | "C compiler" 27 | FORCE 28 | ) 29 | 30 | set( 31 | CMAKE_CXX_COMPILER 32 | "${CMAKE_CXX_COMPILER}" 33 | CACHE 34 | STRING 35 | "C++ compiler" 36 | FORCE 37 | ) 38 | -------------------------------------------------------------------------------- /compiler/gcc-5.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_GCC_5_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_GCC_5_CMAKE_ 1) 8 | endif() 9 | 10 | find_program(CMAKE_C_COMPILER gcc-5) 11 | find_program(CMAKE_CXX_COMPILER g++-5) 12 | 13 | if(NOT CMAKE_C_COMPILER) 14 | polly_fatal_error("gcc not found") 15 | endif() 16 | 17 | if(NOT CMAKE_CXX_COMPILER) 18 | polly_fatal_error("g++ not found") 19 | endif() 20 | 21 | set( 22 | CMAKE_C_COMPILER 23 | "${CMAKE_C_COMPILER}" 24 | CACHE 25 | STRING 26 | "C compiler" 27 | FORCE 28 | ) 29 | 30 | set( 31 | CMAKE_CXX_COMPILER 32 | "${CMAKE_CXX_COMPILER}" 33 | CACHE 34 | STRING 35 | "C++ compiler" 36 | FORCE 37 | ) 38 | -------------------------------------------------------------------------------- /compiler/gcc-6.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_GCC_7_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_GCC_7_CMAKE_ 1) 8 | endif() 9 | 10 | find_program(CMAKE_C_COMPILER gcc-6) 11 | find_program(CMAKE_CXX_COMPILER g++-6) 12 | 13 | if(NOT CMAKE_C_COMPILER) 14 | polly_fatal_error("gcc not found") 15 | endif() 16 | 17 | if(NOT CMAKE_CXX_COMPILER) 18 | polly_fatal_error("g++ not found") 19 | endif() 20 | 21 | set( 22 | CMAKE_C_COMPILER 23 | "${CMAKE_C_COMPILER}" 24 | CACHE 25 | STRING 26 | "C compiler" 27 | FORCE 28 | ) 29 | 30 | set( 31 | CMAKE_CXX_COMPILER 32 | "${CMAKE_CXX_COMPILER}" 33 | CACHE 34 | STRING 35 | "C++ compiler" 36 | FORCE 37 | ) 38 | -------------------------------------------------------------------------------- /compiler/gcc-7.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_COMPILER_GCC_7_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_COMPILER_GCC_7_CMAKE_ 1) 9 | endif() 10 | 11 | find_program(CMAKE_C_COMPILER gcc-7) 12 | find_program(CMAKE_CXX_COMPILER g++-7) 13 | 14 | if(NOT CMAKE_C_COMPILER) 15 | polly_fatal_error("gcc not found") 16 | endif() 17 | 18 | if(NOT CMAKE_CXX_COMPILER) 19 | polly_fatal_error("g++ not found") 20 | endif() 21 | 22 | set( 23 | CMAKE_C_COMPILER 24 | "${CMAKE_C_COMPILER}" 25 | CACHE 26 | STRING 27 | "C compiler" 28 | FORCE 29 | ) 30 | 31 | set( 32 | CMAKE_CXX_COMPILER 33 | "${CMAKE_CXX_COMPILER}" 34 | CACHE 35 | STRING 36 | "C++ compiler" 37 | FORCE 38 | ) 39 | -------------------------------------------------------------------------------- /compiler/gcc-8.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_COMPILER_GCC_8_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_COMPILER_GCC_8_CMAKE_ 1) 9 | endif() 10 | 11 | find_program(CMAKE_C_COMPILER gcc-8) 12 | find_program(CMAKE_CXX_COMPILER g++-8) 13 | 14 | if(NOT CMAKE_C_COMPILER) 15 | polly_fatal_error("gcc not found") 16 | endif() 17 | 18 | if(NOT CMAKE_CXX_COMPILER) 19 | polly_fatal_error("g++ not found") 20 | endif() 21 | 22 | set( 23 | CMAKE_C_COMPILER 24 | "${CMAKE_C_COMPILER}" 25 | CACHE 26 | STRING 27 | "C compiler" 28 | FORCE 29 | ) 30 | 31 | set( 32 | CMAKE_CXX_COMPILER 33 | "${CMAKE_CXX_COMPILER}" 34 | CACHE 35 | STRING 36 | "C++ compiler" 37 | FORCE 38 | ) 39 | -------------------------------------------------------------------------------- /compiler/gcc-9.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, David Hirvonen, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_GCC_9_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_GCC_9_CMAKE_ 1) 8 | endif() 9 | 10 | find_program(CMAKE_C_COMPILER gcc-9) 11 | find_program(CMAKE_CXX_COMPILER g++-9) 12 | 13 | if(NOT CMAKE_C_COMPILER) 14 | polly_fatal_error("gcc-9 not found") 15 | endif() 16 | 17 | if(NOT CMAKE_CXX_COMPILER) 18 | polly_fatal_error("g++-9 not found") 19 | endif() 20 | 21 | set( 22 | CMAKE_C_COMPILER 23 | "${CMAKE_C_COMPILER}" 24 | CACHE 25 | STRING 26 | "C compiler" 27 | FORCE 28 | ) 29 | 30 | set( 31 | CMAKE_CXX_COMPILER 32 | "${CMAKE_CXX_COMPILER}" 33 | CACHE 34 | STRING 35 | "C++ compiler" 36 | FORCE 37 | ) 38 | -------------------------------------------------------------------------------- /compiler/gcc.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_GCC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_GCC_CMAKE 1) 8 | endif() 9 | 10 | find_program(CMAKE_C_COMPILER gcc) 11 | find_program(CMAKE_CXX_COMPILER g++) 12 | 13 | if(NOT CMAKE_C_COMPILER) 14 | polly_fatal_error("gcc not found") 15 | endif() 16 | 17 | if(NOT CMAKE_CXX_COMPILER) 18 | polly_fatal_error("g++ not found") 19 | endif() 20 | 21 | set( 22 | CMAKE_C_COMPILER 23 | "${CMAKE_C_COMPILER}" 24 | CACHE 25 | STRING 26 | "C compiler" 27 | FORCE 28 | ) 29 | 30 | set( 31 | CMAKE_CXX_COMPILER 32 | "${CMAKE_CXX_COMPILER}" 33 | CACHE 34 | STRING 35 | "C++ compiler" 36 | FORCE 37 | ) 38 | -------------------------------------------------------------------------------- /compiler/gcc48.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_GCC48_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_GCC48_CMAKE 1) 8 | endif() 9 | 10 | set(CMAKE_C_COMPILER gcc-4.8 CACHE STRING "C compiler" FORCE) 11 | set(CMAKE_CXX_COMPILER g++-4.8 CACHE STRING "C++ compiler" FORCE) 12 | -------------------------------------------------------------------------------- /compiler/xcode.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_COMPILER_XCODE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_COMPILER_XCODE_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_fatal_error) 11 | 12 | string(COMPARE EQUAL "${POLLY_XCODE_COMPILER}" "" _is_empty) 13 | if(_is_empty) 14 | polly_fatal_error("Please set POLLY_XCODE_COMPILER") 15 | endif() 16 | 17 | set(_cmd xcrun --find "${POLLY_XCODE_COMPILER}") 18 | 19 | execute_process( 20 | COMMAND 21 | ${_cmd} 22 | OUTPUT_VARIABLE _compiler_path 23 | RESULT_VARIABLE _result 24 | OUTPUT_STRIP_TRAILING_WHITESPACE 25 | ) 26 | 27 | if(NOT _result EQUAL 0) 28 | polly_fatal_error("Command failed: ${_cmd}") 29 | endif() 30 | 31 | set(CMAKE_XCODE_ATTRIBUTE_CC "${_compiler_path}") 32 | 33 | polly_status_debug("Compiler: ${_compiler_path}") 34 | -------------------------------------------------------------------------------- /cxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CXX11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CXX11_CMAKE_ 1) 8 | endif() 9 | 10 | # Don't use polly_init (no generator expected) 11 | set(POLLY_TOOLCHAIN_NAME "C++11 support") 12 | set(POLLY_TOOLCHAIN_TAG "cxx11") 13 | 14 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 15 | 16 | set(CMAKE_CXX_STANDARD 11) 17 | -------------------------------------------------------------------------------- /cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # Copyright (c) 2018, Richard Hodges 3 | 4 | # All rights reserved. 5 | 6 | if(DEFINED POLLY_CXX17_CMAKE_) 7 | return() 8 | else() 9 | set(POLLY_CXX17_CMAKE_ 1) 10 | endif() 11 | 12 | # Don't use polly_init (no generator expected) 13 | set(POLLY_TOOLCHAIN_NAME "C++17 support") 14 | set(POLLY_TOOLCHAIN_TAG "cxx17") 15 | 16 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 17 | 18 | set(CMAKE_CXX_STANDARD 17) 19 | -------------------------------------------------------------------------------- /cxx20.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # Copyright (c) 2018, Richard Hodges 3 | 4 | # All rights reserved. 5 | 6 | if(DEFINED POLLY_CXX20_CMAKE_) 7 | return() 8 | else() 9 | set(POLLY_CXX20_CMAKE_ 1) 10 | endif() 11 | 12 | # Don't use polly_init (no generator expected) 13 | set(POLLY_TOOLCHAIN_NAME "C++20 support") 14 | set(POLLY_TOOLCHAIN_TAG "cxx20") 15 | 16 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 17 | 18 | set(CMAKE_CXX_STANDARD 20) 19 | -------------------------------------------------------------------------------- /cygwin.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CYGWIN_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CYGWIN_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "cygwin / gcc / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/os/cygwin.cmake") 23 | -------------------------------------------------------------------------------- /default.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_DEFAULT_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_DEFAULT_CMAKE 1) 8 | endif() 9 | 10 | # Don't use polly_init (no generator expected) 11 | set(POLLY_TOOLCHAIN_NAME "Default") 12 | set(POLLY_TOOLCHAIN_TAG "default") 13 | 14 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 15 | -------------------------------------------------------------------------------- /docs/_fixme/Jenkins-(build-bot,-integration).md: -------------------------------------------------------------------------------- 1 | ### Automatically merge to master (blessed) branch 2 | 3 | * [Git plugin](https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin) 4 | 5 | This manual is about creation a job that will merge some branch (e.g. `develop`) to other branch (e.g. `master`) after ci testing successfully finished => branch `master` will always be in good condition (aka `blessed`). 6 | 7 | * In `Source Code Management` set url of git repository. Note that `Credentials` is necessary since 8 | you need to push code to upstream repo 9 | * Set `Branches to build` to `*/develop` 10 | * Select `Add` -> `Merge before build` 11 | * Set `Name of repository` to `origin` 12 | * Set `Branch to merge to` to `master` 13 | * In `Add post-build actions` pick a `Git Publisher` 14 | * Set checkboxes `Push Only If Build Succeeds` and `Merge Results` -------------------------------------------------------------------------------- /docs/_fixme/Jenkins-(creating-user-on-linux-ubuntu).md: -------------------------------------------------------------------------------- 1 | Create new user: 2 | ```bash 3 | sudo useradd --home-dir /home/jenkins-bot --create-home --shell /bin/bash jenkins-bot 4 | ``` 5 | 6 | Create password: 7 | ```bash 8 | sudo passwd jenkins-bot 9 | ``` 10 | 11 | Test it: 12 | ``` 13 | su jenkins-bot 14 | sudo ls 15 | # Expected error: `jenkins-bot is not in the sudoers file` 16 | cat /Users/anotheruser/.ssh/id_rsa 17 | # Expected error: `Permission denied` 18 | chmod 777 /Users/anotheruser/.ssh/id_rsa 19 | # Expected error: `Permission denied` 20 | which python 21 | # OK 22 | python 23 | # OK 24 | ``` -------------------------------------------------------------------------------- /docs/_fixme/Used-variables.md: -------------------------------------------------------------------------------- 1 | ### POLLY_TOOLCHAIN_NAME 2 | Name of a toolchain that is used. 3 | ### POLLY_TOOLCHAIN_TAG 4 | Toolchain tag. *Can* be used to modify install directory. Coincide with toolchain name file. 5 | 6 | *Example*: `libcxx.cmake` toolchain define tag as `set(POLLY_TOOLCHAIN_TAG libcxx)` 7 | ### POLLY_STATUS_PRINT 8 | Option with default value `TRUE`. If this variable is set to `TRUE` process information will be printed. 9 | ### POLLY_STATUS_DEBUG 10 | Option with default value `FALSE`. Works like `POLLY_STATUS_PRINT` (more verbose). 11 | ### CUSTOM_LIBCXX_LIBRARY_LOCATION 12 | Setted by `CustomLibcxx.cmake` toolchain. If this variable is `TRUE`, you need to find libcxx yourself: 13 | ```cmake 14 | if(CUSTOM_LIBCXX_LIBRARY_LOCATION) 15 | find_package(Libcxx REQUIRED) 16 | include_directories(${Libcxx_INCLUDE_DIRS}) 17 | target_link_libraries(mytarget ${Libcxx_LIBRARIES}) 18 | endif() 19 | ``` -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- 1 | .. Copyright (c) 2016, Ruslan Baratov 2 | .. All rights reserved. 3 | 4 | Polly: Collection of CMake toolchains 5 | ===================================== 6 | 7 | .. warning:: 8 | 9 | Documentation is in process of migrating from 10 | `GitHub wiki `_. 11 | Some information may be missing: blank pages, broken links, etc. 12 | Will be fixed soon... 13 | 14 | .. toctree:: 15 | :maxdepth: 1 16 | 17 | /toolchains 18 | -------------------------------------------------------------------------------- /docs/jenkins.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | function wrong_dir() { 4 | echo "Please run script from 'docs' directory" 5 | exit 1 6 | } 7 | 8 | [ -f "`pwd`/jenkins.sh" ] || wrong_dir 9 | 10 | venv_dir="`pwd`/_venv" 11 | src="${venv_dir}/bin/activate" 12 | 13 | if [ ! -f "${src}" ]; 14 | then 15 | virtualenv "${venv_dir}" 16 | fi 17 | 18 | source "${src}" 19 | 20 | which python 21 | python --version 22 | 23 | which pip 24 | pip --version 25 | 26 | pip install -U pip 27 | pip install -r requirements.txt 28 | 29 | rm -rf _build _static _spelling 30 | 31 | mkdir _static 32 | 33 | sphinx-build -v -W . _build 34 | sphinx-build -b spelling . _spelling 35 | -------------------------------------------------------------------------------- /docs/make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | set -x 4 | 5 | mkdir -p _static 6 | 7 | sphinx-build -v . _build 8 | 9 | set +x 10 | 11 | echo "Done:" 12 | echo "`pwd`/_build/index.html" 13 | -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- 1 | Sphinx==1.4.5 2 | sphinx-rtd-theme==0.1.9 3 | sphinxcontrib-spelling==2.2.0 4 | -------------------------------------------------------------------------------- /docs/screens/ios-team-id.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/screens/ios-team-id.png -------------------------------------------------------------------------------- /docs/spelling.txt: -------------------------------------------------------------------------------- 1 | AppVeyor 2 | CGold 3 | CMake 4 | CPack 5 | CTest 6 | Config 7 | Cygwin 8 | Dereferenced 9 | Dereferencing 10 | Executables 11 | GCC 12 | GTest 13 | IDE 14 | IDEs 15 | Listfile 16 | Makefile 17 | Makefiles 18 | NMake 19 | OSX 20 | Screenshot 21 | Stackoverflow 22 | Subdirectories 23 | Subdirectory 24 | Toolchain 25 | Uncheck 26 | Uninstall 27 | Unrelocatable 28 | Wikipedia 29 | Workflow 30 | Xcode 31 | autotools 32 | bijective 33 | boolean 34 | breakpoint 35 | checkbox 36 | configs 37 | dereferenced 38 | dereferencing 39 | executables 40 | globbing 41 | hacky 42 | hunterization 43 | iOS 44 | listfile 45 | listfiles 46 | multi 47 | namespace 48 | showstopper 49 | subproject 50 | toolchain 51 | toolchains 52 | wiki 53 | workarounded 54 | workflow 55 | -------------------------------------------------------------------------------- /docs/toolchains.rst: -------------------------------------------------------------------------------- 1 | .. Copyright (c) 2016, Ruslan Baratov 2 | .. All rights reserved. 3 | 4 | Toolchains 5 | ========== 6 | 7 | .. toctree:: 8 | :maxdepth: 1 9 | 10 | /toolchains/android 11 | /toolchains/ios 12 | /toolchains/gcc-musl 13 | /toolchains/clang-omp 14 | /toolchains/linux-mingw-w64 15 | /toolchains/raspberry-pi 16 | -------------------------------------------------------------------------------- /docs/toolchains/clang-omp.rst: -------------------------------------------------------------------------------- 1 | .. Copyright (c) 2017, Ruslan Baratov 2 | .. All rights reserved. 3 | 4 | .. spelling:: 5 | 6 | omp 7 | Runtime 8 | 9 | clang-omp 10 | --------- 11 | 12 | Download Clang from (tested with Clang 4.0): 13 | 14 | * http://releases.llvm.org/ 15 | 16 | Save directory with Clang in environment variable ``CLANG_OMP_ROOT``. 17 | Verify path: 18 | 19 | .. code-block:: none 20 | 21 | > ls ${CLANG_OMP_ROOT}/bin/clang++ 22 | /.../clang-4.0.0/bin/clang++ 23 | 24 | Runtime 25 | ======= 26 | 27 | To run executable you should provide a path to shared OpenMP library. 28 | 29 | Modify ``DYLD_LIBRARY_PATH`` on OSX: 30 | 31 | .. code-block:: none 32 | 33 | > export DYLD_LIBRARY_PATH=${CLANG_OMP_ROOT}/lib:${DYLD_LIBRARY_PATH} 34 | -------------------------------------------------------------------------------- /docs/toolchains/ios/errors/signing-request-development-team.rst: -------------------------------------------------------------------------------- 1 | .. Copyright (c) 2017, Ruslan Baratov 2 | .. All rights reserved. 3 | 4 | .. spelling:: 5 | 6 | xxx 7 | 8 | Signing for "xxx" requires a development team 9 | --------------------------------------------- 10 | 11 | If configure step fails with the error similar to: 12 | 13 | .. code-block:: none 14 | 15 | Signing for "xxxxxx" requires a development team. Select a development 16 | team in the project editor. 17 | 18 | First check that variable 19 | :doc:`POLLY_IOS_DEVELOPMENT_TEAM ` 20 | is set. Second verify that ``com.example`` can be used as a 21 | :doc:`bundle ID `. 22 | -------------------------------------------------------------------------------- /docs/toolchains/ios/screens/01_new_project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/toolchains/ios/screens/01_new_project.png -------------------------------------------------------------------------------- /docs/toolchains/ios/screens/02_single_view_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/toolchains/ios/screens/02_single_view_app.png -------------------------------------------------------------------------------- /docs/toolchains/ios/screens/03_project_options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/toolchains/ios/screens/03_project_options.png -------------------------------------------------------------------------------- /docs/toolchains/ios/screens/04_bundle_identifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/toolchains/ios/screens/04_bundle_identifier.png -------------------------------------------------------------------------------- /docs/toolchains/ios/screens/05_run_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/toolchains/ios/screens/05_run_app.png -------------------------------------------------------------------------------- /docs/toolchains/ios/screens/bad_bundle_id.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpp-pm/polly/e1aa148c9e44698a18a690e25fe006166a484192/docs/toolchains/ios/screens/bad_bundle_id.png -------------------------------------------------------------------------------- /docs/toolchains/linux-mingw-w64.rst: -------------------------------------------------------------------------------- 1 | .. Copyright (c) 2017, NeroBurner 2 | .. All rights reserved. 3 | 4 | .. spelling:: 5 | 6 | mingw 7 | 8 | mingw-w64 9 | ========= 10 | 11 | mingw-w64 http://mingw-w64.org/ cross compiling toolchain to compile for Windows on Linux host. 12 | 13 | Install mingw-w64 cross compiler: 14 | 15 | .. code-block:: none 16 | 17 | > sudo apt-get -y install mingw-w64 18 | 19 | Test if the compiler is installed correctly 20 | 21 | .. code-block:: none 22 | 23 | > x86_64-w64-mingw32-gcc --version 24 | x86_64-w64-mingw32-gcc (GCC) 5.3.1 20160211 25 | Copyright (C) 2015 Free Software Foundation, Inc. 26 | This is free software; see the source for copying conditions. There is NO 27 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28 | -------------------------------------------------------------------------------- /emscripten-cxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_EMSCRIPTEN_CXX11_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_EMSCRIPTEN_CXX11_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Emscripten Cross Compile / C++11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include(polly_clear_environment_variables) 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/emscripten.cmake") 21 | 22 | -------------------------------------------------------------------------------- /emscripten-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_EMSCRIPTEN_CXX14_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_EMSCRIPTEN_CXX14_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Emscripten Cross Compile / C++14" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include(polly_clear_environment_variables) 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/emscripten.cmake") 21 | 22 | -------------------------------------------------------------------------------- /emscripten-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_EMSCRIPTEN_CXX17_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_EMSCRIPTEN_CXX17_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Emscripten Cross Compile / C++17" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include(polly_clear_environment_variables) 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/emscripten.cmake") 21 | 22 | -------------------------------------------------------------------------------- /emscripten-cxx20.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_EMSCRIPTEN_CXX20_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_EMSCRIPTEN_CXX20_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Emscripten Cross Compile / C++20" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include(polly_clear_environment_variables) 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx20.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/emscripten.cmake") 21 | -------------------------------------------------------------------------------- /examples/01-executable/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | cmake_minimum_required(VERSION 2.8.8) 5 | project(01-executable) 6 | 7 | add_executable(simple "./main.cpp") 8 | 9 | install(TARGETS simple DESTINATION bin) 10 | 11 | enable_testing() 12 | if(IOS) 13 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip iOS test") 14 | elseif(ANDROID) 15 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip Android test") 16 | else() 17 | add_test(NAME SimpleTest COMMAND simple) 18 | endif() 19 | -------------------------------------------------------------------------------- /examples/02-library/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | cmake_minimum_required(VERSION 2.8.8) 5 | project(02-library) 6 | 7 | add_library(foo "./foo.cpp") 8 | install(TARGETS foo DESTINATION lib) 9 | 10 | add_executable(simple "./main.cpp") 11 | target_link_libraries(simple foo) 12 | 13 | enable_testing() 14 | if(IOS) 15 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip iOS test") 16 | elseif(ANDROID) 17 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip Android test") 18 | else() 19 | add_test(NAME SimpleTest COMMAND simple) 20 | endif() 21 | -------------------------------------------------------------------------------- /examples/02-library/foo.cpp: -------------------------------------------------------------------------------- 1 | #include // std::cout 2 | 3 | int foo() { 4 | std::cout << "Hello from foo" << std::endl; 5 | return 42; 6 | } 7 | -------------------------------------------------------------------------------- /examples/02-library/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int foo(); 4 | 5 | int main() { 6 | std::cout << "Foo say:" << std::endl; 7 | foo(); 8 | } 9 | -------------------------------------------------------------------------------- /examples/03-shared-link/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | cmake_minimum_required(VERSION 2.8.8) 5 | project(03-shared-link) 6 | 7 | include(GenerateExportHeader) 8 | 9 | add_library(foo SHARED foo.cpp) 10 | add_library(boo SHARED boo.cpp) 11 | 12 | generate_export_header(foo) 13 | generate_export_header(boo) 14 | 15 | include_directories("${CMAKE_CURRENT_BINARY_DIR}") 16 | 17 | target_link_libraries(boo foo) 18 | 19 | install(TARGETS boo DESTINATION lib) 20 | 21 | add_executable(simple "./main.cpp") 22 | target_link_libraries(simple boo) 23 | 24 | enable_testing() 25 | if(IOS) 26 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip iOS test") 27 | elseif(ANDROID) 28 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip Android test") 29 | else() 30 | add_test(NAME SimpleTest COMMAND simple) 31 | endif() 32 | -------------------------------------------------------------------------------- /examples/03-shared-link/boo.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "boo_export.h" 4 | 5 | int foo(); 6 | 7 | BOO_EXPORT int boo() { 8 | std::cout << "boo: " << foo() << std::endl; 9 | return 42; 10 | } 11 | -------------------------------------------------------------------------------- /examples/03-shared-link/foo.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "foo_export.h" 4 | 5 | FOO_EXPORT int foo() { 6 | std::cout << "foo" << std::endl; 7 | return 0x42; 8 | } 9 | -------------------------------------------------------------------------------- /examples/03-shared-link/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int boo(); 4 | 5 | int main() { 6 | std::cout << "Boo say:" << std::endl; 7 | boo(); 8 | } 9 | -------------------------------------------------------------------------------- /examples/04-framework/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | cmake_minimum_required(VERSION 3.2) 5 | project(04-framework) 6 | 7 | option(BUILD_SHARED_LIBS "..." ON) 8 | 9 | add_library(foo foo.cpp) 10 | 11 | install(TARGETS foo DESTINATION lib) 12 | 13 | set_target_properties( 14 | foo 15 | PROPERTIES 16 | FRAMEWORK TRUE 17 | ) 18 | 19 | enable_testing() 20 | add_test(NAME SimpleTest COMMAND "${CMAKE_COMMAND}" -E echo "Skip test") 21 | -------------------------------------------------------------------------------- /examples/04-framework/foo.cpp: -------------------------------------------------------------------------------- 1 | int foo() { return 42; } 2 | -------------------------------------------------------------------------------- /flags/32bit.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_32BIT_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_32BIT_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-m32") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "-m32") 14 | -------------------------------------------------------------------------------- /flags/arm-linux-gnueabihf.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_ARM_LINUX_GNUEABIHF_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_ARM_LINUX_GNUEABIHF_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "--target=arm-linux-gnueabihf") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "--target=arm-linux-gnueabihf") 14 | polly_add_cache_flag(CMAKE_ASM_FLAGS "--target=arm-linux-gnueabihf") 15 | -------------------------------------------------------------------------------- /flags/bitcode.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_BITCODE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_BITCODE_ 1) 8 | endif() 9 | 10 | set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE YES) 11 | 12 | # It is not enough to set ENABLE_BITCODE to get binaries built with real bitcode information inside 13 | # We should set BITCODE_GENERATION_MODE to "bitcode" for release builds and to "marker" for debug builds 14 | # Only release builds usually need real bitcode for submission to Apple AppStore, so we'll save time on build 15 | # 16 | # https://medium.com/@heitorburger/static-libraries-frameworks-and-bitcode-6d8f784478a9 17 | 18 | set(CMAKE_XCODE_ATTRIBUTE_BITCODE_GENERATION_MODE[variant=Debug] "marker") 19 | set(CMAKE_XCODE_ATTRIBUTE_BITCODE_GENERATION_MODE "bitcode") 20 | 21 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "bitcode.3") 22 | 23 | -------------------------------------------------------------------------------- /flags/clang-tidy.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_CLANG_TIDY_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_CLANG_TIDY_CMAKE_ 1) 8 | endif() 9 | 10 | set(CMAKE_CXX_CLANG_TIDY clang-tidy) 11 | set(CMAKE_C_CLANG_TIDY clang-tidy) 12 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "clang-tidy") 13 | -------------------------------------------------------------------------------- /flags/cuda-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_CUDA_CXX14_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_CUDA_CXX14_CMAKE 1) 8 | endif() 9 | 10 | # Set CMAKE_CUDA_STANDARD to cache to override project local value if present. 11 | # FORCE added in case CMAKE_CUDA_STANDARD already set in cache 12 | # (e.g. set before 'project' by user). 13 | set(CMAKE_CUDA_STANDARD 14 CACHE STRING "CUDA C++ Standard (toolchain)" FORCE) 14 | set(CMAKE_CUDA_STANDARD_REQUIRED YES CACHE BOOL "CUDA C++ Standard required" FORCE) 15 | set(CMAKE_CUDA_EXTENSIONS NO CACHE BOOL "CUDA C++ Standard extensions" FORCE) 16 | -------------------------------------------------------------------------------- /flags/cxx98.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_CXX98_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_CXX98_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-std=c++98") 13 | 14 | # Set CMAKE_CXX_STANDARD to cache to override project local value if present. 15 | # FORCE added in case CMAKE_CXX_STANDARD already set in cache 16 | # (e.g. set before 'project' by user). 17 | set(CMAKE_CXX_STANDARD 98 CACHE STRING "C++ Standard (toolchain)" FORCE) 18 | set(CMAKE_CXX_STANDARD_REQUIRED YES CACHE BOOL "C++ Standard required" FORCE) 19 | set(CMAKE_CXX_EXTENSIONS NO CACHE BOOL "C++ Standard extensions" FORCE) 20 | -------------------------------------------------------------------------------- /flags/fconcepts.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_FCONCEPTS_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_FCONCEPTS_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-fconcepts") 13 | -------------------------------------------------------------------------------- /flags/gnuxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_GNUXX11_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_GNUXX11_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-std=gnu++11") 13 | 14 | # Set CMAKE_CXX_STANDARD to cache to override project local value if present. 15 | # FORCE added in case CMAKE_CXX_STANDARD already set in cache 16 | # (e.g. set before 'project' by user). 17 | set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ Standard (toolchain)" FORCE) 18 | set(CMAKE_CXX_STANDARD_REQUIRED YES CACHE BOOL "C++ Standard required" FORCE) 19 | -------------------------------------------------------------------------------- /flags/gold.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_GOLD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_GOLD_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-fuse-ld=gold") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "-fuse-ld=gold") 14 | -------------------------------------------------------------------------------- /flags/hardfloat.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_HARDFLOAT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_HARDFLOAT_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-mfloat-abi=hard") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "-mfloat-abi=hard") 14 | -------------------------------------------------------------------------------- /flags/lld.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_LLD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_LLD_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_EXE_LINKER_FLAGS "-fuse-ld=lld") 13 | polly_add_cache_flag(CMAKE_SHARED_LINKER_FLAGS "-fuse-ld=lld") 14 | polly_add_cache_flag(CMAKE_MODULE_LINKER_FLAGS "-fuse-ld=lld") 15 | -------------------------------------------------------------------------------- /flags/lto.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_LTO_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_LTO_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_fatal_error) 11 | 12 | if(NOT POLICY CMP0069) 13 | polly_fatal_error("Bad CMake version") 14 | endif() 15 | 16 | set(CMAKE_INTERPROCEDURAL_OPTIMIZATION YES) 17 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "lto.v2") 18 | -------------------------------------------------------------------------------- /flags/mtune_cortex-a15.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_MTUNE_CORTEX-A15_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_MTUNE_CORTEX-A15_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | # generate code that works best on the specified hardware 13 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "cortex-a15") 14 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-mtune=cortex-a15") 15 | polly_add_cache_flag(CMAKE_C_FLAGS "-mtune=cortex-a15") 16 | 17 | -------------------------------------------------------------------------------- /flags/neon-vfpv4.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_NEON_VFPV4_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_NEON_VFPV4_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-mfpu=neon-vfpv4") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "-mfpu=neon-vfpv4") 14 | -------------------------------------------------------------------------------- /flags/neon.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_NEON_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_NEON_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-mfpu=neon") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "-mfpu=neon") 14 | -------------------------------------------------------------------------------- /flags/openwrt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # Copyright (c) 2017, Ruslan Baratov 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_FLAGS_OPENWRT_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_FLAGS_OPENWRT_CMAKE_ 1) 9 | endif() 10 | 11 | include(polly_add_cache_flag) 12 | 13 | set( 14 | _openwrt_flags 15 | -pipe 16 | -march=armv7-a 17 | -mcpu=cortex-a9 18 | -mtune=cortex-a9 19 | -msoft-float 20 | -mfloat-abi=soft 21 | -fno-caller-saves 22 | -fno-plt 23 | "-DNEED_PRINTF=1" # http://www.dd-wrt.com/phpBB2/viewtopic.php?p=552124 24 | ) 25 | 26 | foreach(_openwrt_flag ${_openwrt_flags}) 27 | polly_add_cache_flag(CMAKE_C_FLAGS "${_openwrt_flag}") 28 | polly_add_cache_flag(CMAKE_CXX_FLAGS "${_openwrt_flag}") 29 | endforeach() 30 | -------------------------------------------------------------------------------- /flags/sanitize_leak.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_SANITIZE_LEAK_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_SANITIZE_LEAK_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=leak") 13 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-g") 14 | 15 | polly_add_cache_flag(CMAKE_C_FLAGS "-fsanitize=leak") 16 | polly_add_cache_flag(CMAKE_C_FLAGS "-g") 17 | 18 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "sanitize-leak") 19 | -------------------------------------------------------------------------------- /flags/sanitize_memory.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_SANITIZE_MEMORY_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_SANITIZE_MEMORY_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=memory") 13 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize-memory-track-origins") 14 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-g") 15 | 16 | polly_add_cache_flag(CMAKE_C_FLAGS "-fsanitize=memory") 17 | polly_add_cache_flag(CMAKE_C_FLAGS "-fsanitize-memory-track-origins") 18 | polly_add_cache_flag(CMAKE_C_FLAGS "-g") 19 | -------------------------------------------------------------------------------- /flags/sanitize_thread.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_SANITIZE_THREAD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_SANITIZE_THREAD_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=thread") 13 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-g") 14 | 15 | polly_add_cache_flag(CMAKE_C_FLAGS "-fsanitize=thread") 16 | polly_add_cache_flag(CMAKE_C_FLAGS "-g") 17 | 18 | # NOTE: 19 | # 20 | # PIE flags removed because it's not a requirement anymore: 21 | # * https://github.com/google/sanitizers/issues/503#issuecomment-137946595 22 | # 23 | # With PIE flags sanitizer doesn't work on Ubuntu 14.04/16.04 24 | # producing runtime error "ThreadSanitizer: unexpected memory mapping": 25 | # * https://github.com/google/sanitizers/issues/503 26 | -------------------------------------------------------------------------------- /flags/static-std.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_STATIC_STD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_STATIC_STD_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-static-libgcc") 13 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-static-libstdc++") 14 | 15 | polly_add_cache_flag(CMAKE_C_FLAGS "-static-libgcc") 16 | 17 | # There is no macro to detect this flags on toolchain calculation so we must 18 | # mark this toolchain explicitly. 19 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "static-std-v2") 20 | -------------------------------------------------------------------------------- /flags/static.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_STATIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_STATIC_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-static") 13 | polly_add_cache_flag(CMAKE_C_FLAGS "-static") 14 | 15 | # There is no macro to detect this flags on toolchain calculation so we must 16 | # mark this toolchain explicitly. 17 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "static") 18 | -------------------------------------------------------------------------------- /flags/vs-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS_INIT "/std:c++14") 13 | 14 | # Set CMAKE_CXX_STANDARD to cache to override project local value if present. 15 | # FORCE added in case CMAKE_CXX_STANDARD already set in cache 16 | # (e.g. set before 'project' by user). 17 | set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ Standard (toolchain)" FORCE) 18 | set(CMAKE_CXX_STANDARD_REQUIRED YES CACHE BOOL "C++ Standard required" FORCE) 19 | set(CMAKE_CXX_EXTENSIONS NO CACHE BOOL "C++ Standard extensions" FORCE) 20 | -------------------------------------------------------------------------------- /flags/vs-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS_INIT "/std:c++17") 13 | 14 | # Set CMAKE_CXX_STANDARD to cache to override project local value if present. 15 | # FORCE added in case CMAKE_CXX_STANDARD already set in cache 16 | # (e.g. set before 'project' by user). 17 | set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ Standard (toolchain)" FORCE) 18 | set(CMAKE_CXX_STANDARD_REQUIRED YES CACHE BOOL "C++ Standard required" FORCE) 19 | set(CMAKE_CXX_EXTENSIONS NO CACHE BOOL "C++ Standard extensions" FORCE) 20 | -------------------------------------------------------------------------------- /flags/vs-mt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_MT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_MT_CMAKE_ 1) 8 | endif() 9 | 10 | foreach(_lang C CXX) 11 | set(CMAKE_${_lang}_FLAGS_DEBUG "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1" CACHE STRING "" FORCE) 12 | set(CMAKE_${_lang}_FLAGS_MINSIZEREL "/MT /O1 /Ob1 /DNDEBUG" CACHE STRING "" FORCE) 13 | set(CMAKE_${_lang}_FLAGS_RELEASE "/MT /O2 /Ob2 /DNDEBUG" CACHE STRING "" FORCE) 14 | set(CMAKE_${_lang}_FLAGS_RELWITHDEBINFO "/MT /Zi /O2 /Ob1 /DNDEBUG" CACHE STRING "" FORCE) 15 | endforeach() 16 | -------------------------------------------------------------------------------- /flags/vs-nonpermissive.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_NONPERMISSIVE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_NONPERMISSIVE_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS_INIT "/permissive-") 13 | 14 | # There is no macro to detect this flags on toolchain calculation so we must 15 | # mark this toolchain explicitly. 16 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "/permissive-") 17 | -------------------------------------------------------------------------------- /flags/vs-platform-arm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_PLATFORM_ARM_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_PLATFORM_ARM_CMAKE_ 1) 8 | endif() 9 | 10 | # https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2016%202019.html#platform-selection 11 | set(CMAKE_GENERATOR_PLATFORM ARM CACHE STRING "Platform" FORCE) 12 | -------------------------------------------------------------------------------- /flags/vs-platform-arm64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_PLATFORM_ARM64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_PLATFORM_ARM64_CMAKE_ 1) 8 | endif() 9 | 10 | # https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2016%202019.html#platform-selection 11 | set(CMAKE_GENERATOR_PLATFORM ARM64 CACHE STRING "Platform" FORCE) 12 | -------------------------------------------------------------------------------- /flags/vs-platform-win32.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_PLATFORM_WIN32_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_PLATFORM_WIN32_CMAKE_ 1) 8 | endif() 9 | 10 | # https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2016%202019.html#platform-selection 11 | set(CMAKE_GENERATOR_PLATFORM Win32 CACHE STRING "Platform" FORCE) 12 | -------------------------------------------------------------------------------- /flags/vs-platform-x64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_PLATFORM_X64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_PLATFORM_X64_CMAKE_ 1) 8 | endif() 9 | 10 | # https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2016%202019.html#platform-selection 11 | set(CMAKE_GENERATOR_PLATFORM x64 CACHE STRING "Platform" FORCE) 12 | -------------------------------------------------------------------------------- /flags/vs-version-14-11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_VERSION_14_11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_VERSION_14_11_CMAKE_ 1) 8 | endif() 9 | 10 | set(CMAKE_GENERATOR_TOOLSET "version=14.11" CACHE STRING "..." FORCE) 11 | -------------------------------------------------------------------------------- /flags/vs-z7.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_Z7_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_Z7_CMAKE_ 1) 8 | endif() 9 | 10 | foreach(_lang C CXX) 11 | set(CMAKE_${_lang}_FLAGS_DEBUG "/D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1" CACHE STRING "" FORCE) 12 | set(CMAKE_${_lang}_FLAGS_MINSIZEREL "/MD /O1 /Ob1 /DNDEBUG" CACHE STRING "" FORCE) 13 | set(CMAKE_${_lang}_FLAGS_RELEASE "/MD /O2 /Ob2 /DNDEBUG" CACHE STRING "" FORCE) 14 | set(CMAKE_${_lang}_FLAGS_RELWITHDEBINFO "/MD /Z7 /O2 /Ob1 /DNDEBUG" CACHE STRING "" FORCE) 15 | endforeach() 16 | 17 | list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "/Z7") 18 | -------------------------------------------------------------------------------- /flags/vs-zw.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_FLAGS_VS_ZW_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_FLAGS_VS_ZW_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | # https://msdn.microsoft.com/en-us/library/hh561383.aspx 13 | polly_add_cache_flag(CMAKE_CXX_FLAGS_INIT "/ZW") 14 | polly_add_cache_flag(CMAKE_C_FLAGS_INIT "/ZW") 15 | -------------------------------------------------------------------------------- /gcc-10-cxx17-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_10_CXX17_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_10_CXX17_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 10 / c++17 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-10.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-10-cxx17-gnu-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_10_CXX17_GNU_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_10_CXX17_GNU_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 10 / c++17 support / GNU / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-10.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17-gnu.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-10-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_10_CXX17_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_10_CXX17_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 10 / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-10.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | -------------------------------------------------------------------------------- /gcc-32bit-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_32BIT_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_32BIT_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / PIC / c++11 support / 32 bit" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/32bit.cmake") 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 25 | -------------------------------------------------------------------------------- /gcc-32bit.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_32BIT_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_32BIT_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / 32 bit" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/32bit.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /gcc-4-8-c11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC48_C11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC48_C11_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 4.8 / c++11 support / C11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc48.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/c11.cmake") 22 | -------------------------------------------------------------------------------- /gcc-4-8-pic-hid-sections.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC48_PIC_HID_SECTIONS_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC48_PIC_HID_SECTIONS_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 4.8 / PIC / c++11 support / hidden / function-sections / data-sections" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc48.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/function-sections.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/data-sections.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") 25 | -------------------------------------------------------------------------------- /gcc-4-8-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC48_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC48_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 4.8 / PIC / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc48.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-4-8.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC48_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC48_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 4.8 / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc48.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | -------------------------------------------------------------------------------- /gcc-5-cxx14-c11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_5_CXX14_C11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_5_CXX14_C11_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 5 / c++14 support / C11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-5.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/c11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | 25 | -------------------------------------------------------------------------------- /gcc-5.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_5_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_5_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 5 / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-5.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | -------------------------------------------------------------------------------- /gcc-6-32bit-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_32BIT_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_32BIT_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 6 / c++14 support / 32 bit" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-6.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/32bit.cmake") 22 | -------------------------------------------------------------------------------- /gcc-7-cxx11-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2019, Ruslan Baratov 2 | # Copyright (c) 2019, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX11_PIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX11_PIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++11 support / PIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | -------------------------------------------------------------------------------- /gcc-7-cxx14-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX14_PIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX14_PIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++14 support / PIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | -------------------------------------------------------------------------------- /gcc-7-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX14_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX14_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++14 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | -------------------------------------------------------------------------------- /gcc-7-cxx17-concepts.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX17_CONCEPTS_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX17_CONCEPTS_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++17 support / Concepts" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fconcepts.cmake") 23 | -------------------------------------------------------------------------------- /gcc-7-cxx17-gnu.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2018, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX17_GNU_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX17_GNU_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++17 support / GNU" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17-gnu.cmake") 22 | -------------------------------------------------------------------------------- /gcc-7-cxx17-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX17_PIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX17_PIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++17 support / PIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | -------------------------------------------------------------------------------- /gcc-7-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX17_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX17_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++17 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | -------------------------------------------------------------------------------- /gcc-7.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++11 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | -------------------------------------------------------------------------------- /gcc-8-cxx14-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_8_CXX14_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_8_CXX14_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 8 / c++14 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-8-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_8_CXX14_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_8_CXX14_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 8 / c++14 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | -------------------------------------------------------------------------------- /gcc-8-cxx17-concepts.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_8_CXX17_CONCEPTS_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_8_CXX17_CONCEPTS_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 8 / c++17 support / Concepts" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fconcepts.cmake") 23 | -------------------------------------------------------------------------------- /gcc-8-cxx17-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_8_CXX17_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_8_CXX17_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 8 / c++17 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-8-cxx17-gnu-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_8_CXX17_GNU_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_8_CXX17_GNU_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 8 / c++17 support / GNU / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17-gnu.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-8-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_8_CXX17_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_8_CXX17_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 8 / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | -------------------------------------------------------------------------------- /gcc-9-cxx17-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_9_CXX17_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_9_CXX17_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 9 / c++17 support / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-9.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-9-cxx17-gnu-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_9_CXX17_GNU_FPIC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_9_CXX17_GNU_FPIC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 9 / c++17 support / GNU / Position-Independent Code" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-9.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17-gnu.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-9-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_9_CXX17_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_9_CXX17_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc 9 / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-9.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | -------------------------------------------------------------------------------- /gcc-c11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_C11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_C11_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / C11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/c11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /gcc-cxx14-c11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_CXX14_C11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_CXX14_C11_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++14 support / C11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/c11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | 25 | -------------------------------------------------------------------------------- /gcc-cxx17-c11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_CXX17_C11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_CXX14_C17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++17 support / C11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/c11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | 25 | -------------------------------------------------------------------------------- /gcc-cxx98.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_CXX98_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_CXX98_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx98.cmake") 21 | -------------------------------------------------------------------------------- /gcc-gold.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_GOLD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_GOLD_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / gold" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/gold.cmake") 22 | -------------------------------------------------------------------------------- /gcc-hid-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # Copyright (c) 2016, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_HID_FPIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_HID_FPIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc / c++11 support / hidden / FPIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 24 | 25 | -------------------------------------------------------------------------------- /gcc-hid.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_HID_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_HID_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / hidden" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") 22 | -------------------------------------------------------------------------------- /gcc-lto.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_LTO_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_LTO_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / LTO" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/lto.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /gcc-ninja.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_NINJA_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_NINJA_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 23 | -------------------------------------------------------------------------------- /gcc-pic-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / PIC / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-pic-hid-sections.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_PIC_HID_SECTIONS_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_PIC_HID_SECTIONS_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / PIC / c++11 support / hidden / function-sections / data-sections" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/function-sections.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/data-sections.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") 25 | -------------------------------------------------------------------------------- /gcc-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / PIC / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /gcc-static-std.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_STATIC_STD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_STATIC_STD_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / static (libgcc, libstdc++)" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static-std.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /gcc-static.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_STATIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_GCC_STATIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support / static" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /gcc.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_GCC_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_GCC_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 23 | -------------------------------------------------------------------------------- /libcxx-hid-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov, David Hirvonen 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX_CXX11_HID_FPIC) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX_CXX11_HID_FPIC 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support / hidden / FPIC" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 24 | -------------------------------------------------------------------------------- /libcxx-hid.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX_CXX11_HID_) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX_CXX11_HID_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support / hidden" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") 23 | -------------------------------------------------------------------------------- /libcxx-no-sdk.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX_NO_SDK_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX_NO_SDK_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support / No OSX SDK" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | -------------------------------------------------------------------------------- /libcxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_LIBCXX_CXX11_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_LIBCXX_CXX11_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / LLVM Standard C++ Library (libc++) / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 24 | -------------------------------------------------------------------------------- /libcxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2018, Ruslan Baratov 2 | # Copyright (c) 2018, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_CLANG_LIBCXX_CXX14_CMAKE) 6 | return() 7 | else() 8 | set(POLLY_CLANG_LIBCXX_CXX14_CMAKE 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "clang / LLVM Standard C++ Library (libc++) / c++14 support" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 25 | -------------------------------------------------------------------------------- /library/std/libcxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LIBRARY_STD_LIBCXX_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_LIBRARY_STD_LIBCXX_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-stdlib=libc++") 13 | 14 | if(XCODE) 15 | if(XCODE_VERSION VERSION_LESS 6) 16 | polly_add_cache_flag(CMAKE_EXE_LINKER_FLAGS "-stdlib=libc++") 17 | polly_add_cache_flag(CMAKE_SHARED_LINKER_FLAGS "-stdlib=libc++") 18 | endif() 19 | endif() 20 | -------------------------------------------------------------------------------- /library/std/libstdcxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LIBRARY_STD_LIBSTDCXX_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_LIBRARY_STD_LIBSTDCXX_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-stdlib=libstdc++") 13 | polly_add_cache_flag(CMAKE_EXE_LINKER_FLAGS "-stdlib=libstdc++") 14 | polly_add_cache_flag(CMAKE_SHARED_LINKER_FLAGS "-stdlib=libstdc++") 15 | -------------------------------------------------------------------------------- /library/std/nolibs.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LIBRARY_STD_NOLIBS_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_LIBRARY_STD_NOLIBS_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-nostdinc++") 13 | polly_add_cache_flag(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs") 14 | -------------------------------------------------------------------------------- /linux-gcc-x64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LINUX_GCC_X64_) 5 | return() 6 | else() 7 | set(POLLY_LINUX_GCC_X64_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Linux / gcc / x86_64 / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | set(CROSS_COMPILE_TOOLCHAIN_PREFIX "x86_64-pc-linux") 20 | 21 | include( 22 | "${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-simple-layout.cmake" 23 | ) 24 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 25 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static.cmake") 26 | -------------------------------------------------------------------------------- /linux-mingw-w32.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LINUX_MINGW_W32_) 5 | return() 6 | else() 7 | set(POLLY_LINUX_MINGW_W32_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Windows / mingw-w64 / i686 / c++11 support / static" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | # need to set system name for cross compiling from linux to windows 20 | set(CMAKE_SYSTEM_NAME Windows) 21 | set(CROSS_COMPILE_TOOLCHAIN_PREFIX "i686-w64-mingw32") 22 | set(CMAKE_CROSSCOMPILING_EMULATOR wine64) # used for try_run calls 23 | 24 | include( 25 | "${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-simple-layout.cmake" 26 | ) 27 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static.cmake") 29 | 30 | -------------------------------------------------------------------------------- /linux-mingw-w64-cxx98.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LINUX_MINGW_W64_CXX98_) 5 | return() 6 | else() 7 | set(POLLY_LINUX_MINGW_W64_CXX98_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Windows / mingw-w64 / x86_64 / c++98 support / static" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | # need to set system name for cross compiling from linux to windows 20 | set(CMAKE_SYSTEM_NAME Windows) 21 | set(CROSS_COMPILE_TOOLCHAIN_PREFIX "x86_64-w64-mingw32") 22 | set(CMAKE_CROSSCOMPILING_EMULATOR wine64) # used for try_run calls 23 | 24 | include( 25 | "${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-simple-layout.cmake" 26 | ) 27 | 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static.cmake") 29 | -------------------------------------------------------------------------------- /linux-mingw-w64-gnuxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, NeroBurner 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_LINUX_MINGW_W64_GNUXX11_) 5 | return() 6 | else() 7 | set(POLLY_LINUX_MINGW_W64_GNUXX11_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Windows / mingw-w64 / x86_64 / gnu++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | # need to set system name for cross compiling from linux to windows 20 | set(CMAKE_SYSTEM_NAME Windows) 21 | set(CROSS_COMPILE_TOOLCHAIN_PREFIX "x86_64-w64-mingw32") 22 | set(CMAKE_CROSSCOMPILING_EMULATOR wine64) # used for try_run calls 23 | 24 | include( 25 | "${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-simple-layout.cmake" 26 | ) 27 | include("${CMAKE_CURRENT_LIST_DIR}/flags/gnuxx11.cmake") 28 | 29 | -------------------------------------------------------------------------------- /mingw-c11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MINGW_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MINGW_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "mingw / gcc / c++11 support / C11" 14 | "MinGW Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/c11.cmake") 22 | -------------------------------------------------------------------------------- /mingw-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MINGW_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MINGW_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "mingw / gcc / c++14 support" 14 | "MinGW Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | -------------------------------------------------------------------------------- /mingw-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MINGW_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MINGW_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "mingw / gcc / c++17 support" 14 | "MinGW Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | -------------------------------------------------------------------------------- /mingw-cxx20.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MINGW_CXX20_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MINGW_CXX20_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "mingw / gcc / c++20 support" 14 | "MinGW Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx20.cmake") 21 | -------------------------------------------------------------------------------- /mingw.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MINGW_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MINGW_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "mingw / gcc / c++11 support" 14 | "MinGW Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | -------------------------------------------------------------------------------- /msys-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MSYS_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MSYS_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "MSYS / gcc / c++14 support" 14 | "MSYS Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 21 | -------------------------------------------------------------------------------- /msys-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MSYS_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MSYS_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "MSYS / gcc / c++17 support" 14 | "MSYS Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | -------------------------------------------------------------------------------- /msys-cxx20.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MSYS_CXX20_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MSYS_CXX20_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "MSYS / gcc / c++20 support" 14 | "MSYS Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx20.cmake") 21 | -------------------------------------------------------------------------------- /msys.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_MSYS_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_MSYS_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "MSYS / gcc / c++11 support" 14 | "MSYS Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | -------------------------------------------------------------------------------- /ninja-clang-cxx17-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2020, Ruslan Baratov, David Hirvonen, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_CLANG_CXX17_FPIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_CLANG_CXX17_FPIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "clang / c++17 support / Position-Independent Code" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /ninja-gcc-7-cxx17-concepts.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_7_CXX17_CONCEPTS_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_7_CXX17_CONCEPTS_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 7 / c++17 support / Concepts" 15 | "Ninja" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-7.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fconcepts.cmake") 23 | -------------------------------------------------------------------------------- /ninja-gcc-8-cxx17-concepts.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2017, Ruslan Baratov 2 | # Copyright (c) 2017, David Hirvonen 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_GCC_8_CXX17_CONCEPTS_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_GCC_8_CXX17_CONCEPTS_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "gcc 8 / c++17 support / Concepts" 15 | "Ninja" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-8.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fconcepts.cmake") 23 | -------------------------------------------------------------------------------- /ninja-gcc-cxx17-fpic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2020, Ruslan Baratov, David Hirvonen, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_GCC_CXX17_FPIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_GCC_CXX17_FPIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "gcc / c++17 support / Position-Independent Code" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | -------------------------------------------------------------------------------- /ninja-vs-12-2013-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_12_2013_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_12_2013_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2013 / x64" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | -------------------------------------------------------------------------------- /ninja-vs-14-2015-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_14_2015_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_14_2015_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2015 / x64" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | -------------------------------------------------------------------------------- /ninja-vs-15-2017-win64-cxx17-nonpermissive.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_15_2017_WIN64_CXX17_NONPERMISSIVE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_15_2017_WIN64_CXX17_NONPERMISSIVE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2017 / x64 / C++17" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-nonpermissive.cmake") 22 | -------------------------------------------------------------------------------- /ninja-vs-15-2017-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_15_2017_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_15_2017_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2017 / x64 / C++17" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 21 | -------------------------------------------------------------------------------- /ninja-vs-15-2017-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_15_2017_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_15_2017_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2017 / x64" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | -------------------------------------------------------------------------------- /ninja-vs-16-2019-win64-cxx17-nonpermissive.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_16_2019_WIN64_CXX17_NONPERMISSIVE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_16_2019_WIN64_CXX17_NONPERMISSIVE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2019 / x64 / C++17" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-nonpermissive.cmake") 22 | -------------------------------------------------------------------------------- /ninja-vs-16-2019-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_16_2019_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_16_2019_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2019 / x64 / C++17" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 21 | -------------------------------------------------------------------------------- /ninja-vs-16-2019-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_16_2019_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_16_2019_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio 2019 / x64" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | -------------------------------------------------------------------------------- /ninja-vs-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NINJA_VS_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NINJA_VS_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Ninja / Visual Studio / x64 / C++17" 14 | "Ninja" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/cl.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 21 | -------------------------------------------------------------------------------- /nmake-vs-12-2013-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_12_2013_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_12_2013_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2013 / x64" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /nmake-vs-12-2013.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_12_2013_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_12_2013_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2013 / x86" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /nmake-vs-15-2017-win64-cxx17-nonpermissive.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_15_2017_WIN64_CXX17_NONPERMISSIVE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_15_2017_WIN64_CXX17_NONPERMISSIVE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2017 / x64 / C++17" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-nonpermissive.cmake") 20 | -------------------------------------------------------------------------------- /nmake-vs-15-2017-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_15_2017_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_15_2017_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2017 / x64 / C++17" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | -------------------------------------------------------------------------------- /nmake-vs-15-2017-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_15_2017_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_15_2017_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2017 / x64" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /nmake-vs-16-2019-win64-cxx17-nonpermissive.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_16_2019_WIN64_CXX17_NONPERMISSIVE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_16_2019_WIN64_CXX17_NONPERMISSIVE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2019 / x64 / C++17" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-nonpermissive.cmake") 20 | -------------------------------------------------------------------------------- /nmake-vs-16-2019-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_16_2019_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_16_2019_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2019 / x64 / C++17" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | -------------------------------------------------------------------------------- /nmake-vs-16-2019-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_NMAKE_VS_16_2019_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_NMAKE_VS_16_2019_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "NMake / Visual Studio 2019 / x64" 14 | "NMake Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /openbsd-egcc-cxx11-static-std.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_CLANG_OPENBSD_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_CLANG_OPENBSD_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "openbsd / egcc / GNU Standard C++ Library (libstdc++) / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/egcc.cmake") 20 | #include("${CMAKE_CURRENT_LIST_DIR}/library/std/libstdcxx.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/static-std.cmake") 24 | 25 | -------------------------------------------------------------------------------- /os/cygwin.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OS_CYGWIN_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OS_CYGWIN_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | polly_add_cache_flag(CMAKE_CXX_FLAGS "-U__STRICT_ANSI__") 13 | -------------------------------------------------------------------------------- /os/raspberry-pi-hardfloat.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OS_RASPBERRY_PI_HARDFLOAT_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_OS_RASPBERRY_PI_HARDFLOAT_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | foreach(_flag -mfloat-abi=hard -mlittle-endian -munaligned-access) 13 | polly_add_cache_flag(CMAKE_C_FLAGS "${_flag}") 14 | polly_add_cache_flag(CMAKE_CXX_FLAGS "${_flag}") 15 | endforeach() 16 | 17 | set(CMAKE_SYSTEM_NAME "Linux" CACHE STRING "") 18 | 19 | -------------------------------------------------------------------------------- /os/raspberry-pi1.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OS_RASPBERRY_PI1_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_OS_RASPBERRY_PI1_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | # -mcpu=arm1176jzf-s not compatible, removed 13 | foreach(_flag -mfpu=vfp) 14 | polly_add_cache_flag(CMAKE_C_FLAGS "${_flag}") 15 | polly_add_cache_flag(CMAKE_CXX_FLAGS "${_flag}") 16 | endforeach() 17 | 18 | set(CMAKE_SYSTEM_PROCESSOR "armv6" CACHE INTERNAL "") 19 | set(RASPBERRY_PI 1 CACHE INTERNAL "") 20 | set(CMAKE_SYSTEM_NAME "Linux" CACHE INTERNAL "") 21 | -------------------------------------------------------------------------------- /os/raspberry-pi2.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OS_RASPBERRY_PI2_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_OS_RASPBERRY_PI2_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | foreach(_flag -mcpu=cortex-a7 -mfpu=neon-vfpv4) 13 | polly_add_cache_flag(CMAKE_C_FLAGS "${_flag}") 14 | polly_add_cache_flag(CMAKE_CXX_FLAGS "${_flag}") 15 | endforeach() 16 | 17 | set(CMAKE_SYSTEM_PROCESSOR "armv7-a" CACHE INTERNAL "") 18 | set(RASPBERRY_PI 2 CACHE INTERNAL "") 19 | 20 | -------------------------------------------------------------------------------- /os/raspberry-pi3.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017, Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OS_RASPBERRY_PI3_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_OS_RASPBERRY_PI3_CMAKE 1) 8 | endif() 9 | 10 | include(polly_add_cache_flag) 11 | 12 | foreach(_flag -mcpu=cortex-a53 -mfpu=neon-fp-armv8) 13 | polly_add_cache_flag(CMAKE_C_FLAGS "${_flag}") 14 | polly_add_cache_flag(CMAKE_CXX_FLAGS "${_flag}") 15 | endforeach() 16 | 17 | set(CMAKE_SYSTEM_PROCESSOR "armv7-l" CACHE INTERNAL "") 18 | set(RASPBERRY_PI 3 CACHE INTERNAL "") 19 | 20 | -------------------------------------------------------------------------------- /os/rpi-sysroot.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OS_RPI_SYSROOT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OS_RPI_SYSROOT_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_fatal_error) 11 | 12 | if("$ENV{RPI_SYSROOT}" STREQUAL "") 13 | polly_fatal_error("Environment variable RPI_SYSROOT is not set") 14 | endif() 15 | 16 | set(__dir_to_check "$ENV{RPI_SYSROOT}/usr/include") 17 | if(NOT EXISTS "${__dir_to_check}") 18 | polly_fatal_error( 19 | "Directory not found: '${__dir_to_check}'." 20 | " Please verify RPI_SYSROOT environment variable" 21 | ) 22 | endif() 23 | unset(__dir_to_check) 24 | 25 | set(CMAKE_SYSROOT "$ENV{RPI_SYSROOT}" CACHE PATH "Raspberry Pi sysroot" FORCE) 26 | -------------------------------------------------------------------------------- /osx-10-10-dep-10-9-make.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_10_DEP_10_9_MAKE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_10_DEP_10_9_MAKE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.10") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Makefile (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Unix Makefiles" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "OS X Deployment target" FORCE) 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 27 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 28 | -------------------------------------------------------------------------------- /osx-10-11-make.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_11_MAKE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_11_MAKE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.11") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Makefile (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Unix Makefiles" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING "OS X Deployment target" FORCE) 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 27 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 28 | -------------------------------------------------------------------------------- /osx-10-12-make.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_12_MAKE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_12_MAKE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.12") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Makefile (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Unix Makefiles" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "OS X Deployment target" FORCE) 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 27 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 28 | -------------------------------------------------------------------------------- /osx-10-12-ninja.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_12_MAKE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_12_MAKE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.12") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Ninja (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Ninja" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "OS X Deployment target" FORCE) 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 27 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 28 | -------------------------------------------------------------------------------- /osx-10-13-make-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_13_MAKE_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_13_MAKE_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.13") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Makefile (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++14 support" 18 | "Unix Makefiles" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "OS X Deployment target" FORCE) 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 27 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 28 | -------------------------------------------------------------------------------- /osx-10-15-make-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_15_MAKE_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_15_MAKE_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.15") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Makefile (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++14 support" 18 | "Unix Makefiles" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "OS X Deployment target" FORCE) 24 | 25 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 27 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 28 | -------------------------------------------------------------------------------- /osx-10-7.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_7_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_7_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.7") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Xcode (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Xcode" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 24 | 25 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" CACHE STRING "OS X Deployment target" FORCE) 26 | 27 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 29 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 30 | -------------------------------------------------------------------------------- /osx-10-8.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_8_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_8_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.8") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Xcode (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Xcode" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 24 | 25 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8" CACHE STRING "OS X Deployment target" FORCE) 26 | 27 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 29 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 30 | -------------------------------------------------------------------------------- /osx-10-9.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_10_9_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_10_9_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "10.9") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Xcode (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Xcode" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 24 | 25 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "OS X Deployment target" FORCE) 26 | 27 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 29 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 30 | -------------------------------------------------------------------------------- /osx-11-0.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_11_0_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_11_0_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "11.0") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Xcode (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Xcode" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 24 | 25 | set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "OS X Deployment target" FORCE) 26 | 27 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 29 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 30 | -------------------------------------------------------------------------------- /osx-11-1-dep-10-10-cxx17.cmake: -------------------------------------------------------------------------------- 1 | if(DEFINED POLLY_OSX_11_1_DEP_10_10_CXX17_CMAKE_) 2 | return() 3 | else() 4 | set(POLLY_OSX_11_1_DEP_10_10_CXX17_CMAKE_ 1) 5 | endif() 6 | 7 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 8 | 9 | set(OSX_SDK_VERSION "11.1") 10 | set(POLLY_XCODE_COMPILER "clang") 11 | polly_init( 12 | "Xcode (OS X ${OSX_SDK_VERSION} | Deployment 10.10) / \ 13 | ${POLLY_XCODE_COMPILER} / \ 14 | LLVM Standard C++ Library (libc++) / c++17 support" 15 | "Xcode" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 21 | 22 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.10" CACHE STRING "OS X Deployment target" FORCE) 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 25 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 27 | -------------------------------------------------------------------------------- /osx-11-1-dep-10-14-cxx17.cmake: -------------------------------------------------------------------------------- 1 | if(DEFINED POLLY_OSX_11_1_DEP_10_14_CXX17_CMAKE_) 2 | return() 3 | else() 4 | set(POLLY_OSX_11_1_DEP_10_14_CXX17_CMAKE_ 1) 5 | endif() 6 | 7 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 8 | 9 | set(OSX_SDK_VERSION "11.1") 10 | set(POLLY_XCODE_COMPILER "clang") 11 | polly_init( 12 | "Xcode (OS X ${OSX_SDK_VERSION} | Deployment 10.14) / \ 13 | ${POLLY_XCODE_COMPILER} / \ 14 | LLVM Standard C++ Library (libc++) / c++17 support" 15 | "Xcode" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 21 | 22 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14" CACHE STRING "OS X Deployment target" FORCE) 23 | 24 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 25 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 26 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 27 | -------------------------------------------------------------------------------- /osx-11-1.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_OSX_11_1_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_OSX_11_1_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(OSX_SDK_VERSION "11.1") 13 | set(POLLY_XCODE_COMPILER "clang") 14 | polly_init( 15 | "Xcode (OS X ${OSX_SDK_VERSION}) / \ 16 | ${POLLY_XCODE_COMPILER} / \ 17 | LLVM Standard C++ Library (libc++) / c++11 support" 18 | "Xcode" 19 | ) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 24 | 25 | set(CMAKE_OSX_DEPLOYMENT_TARGET "11.1" CACHE STRING "OS X Deployment target" FORCE) 26 | 27 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 28 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 29 | include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake") 30 | -------------------------------------------------------------------------------- /raspberrypi1-cxx11-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, 2017 Alexandre Pretyman 2 | # Copyright (c) 2017 Ruslan Baratov 3 | # All rights reserved. 4 | 5 | if(DEFINED POLLY_RASPBERRYPI1_CXX11_PIC_CMAKE_) 6 | return() 7 | else() 8 | set(POLLY_RASPBERRYPI1_CXX11_PIC_CMAKE_ 1) 9 | endif() 10 | 11 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 12 | 13 | polly_init( 14 | "RaspberryPi 1 Cross Compile / C++11 / PIC" 15 | "Unix Makefiles" 16 | ) 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 19 | 20 | include(polly_clear_environment_variables) 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-raspberry-pi.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi1.cmake") 25 | 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 27 | -------------------------------------------------------------------------------- /raspberrypi2-cxx11-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, 2017 Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_RASPBERRYPI2_CXX11_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_RASPBERRYPI2_CXX11_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "RaspberryPi 2 Cross Compile / C++11 / PIC" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include(polly_clear_environment_variables) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-raspberry-pi.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi2.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi-hardfloat.cmake") 25 | 26 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 27 | -------------------------------------------------------------------------------- /raspberrypi2-cxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, 2017 Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_RASPBERRYPI2_CXX11_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_RASPBERRYPI2_CXX11_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "RaspberryPi 2 Cross Compile / C++11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include(polly_clear_environment_variables) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-raspberry-pi.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi2.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi-hardfloat.cmake") 25 | 26 | -------------------------------------------------------------------------------- /raspberrypi3-cxx11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, 2017 Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_RASPBERRYPI3_CXX11_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_RASPBERRYPI3_CXX11_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "RaspberryPi 3 Cross Compile / C++11" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include(polly_clear_environment_variables) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-raspberry-pi.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi3.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi-hardfloat.cmake") 25 | -------------------------------------------------------------------------------- /raspberrypi3-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, 2017 Alexandre Pretyman 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_RASPBERRYPI3_CXX14_CMAKE) 5 | return() 6 | else() 7 | set(POLLY_RASPBERRYPI3_CXX14_CMAKE 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "RaspberryPi 3 Cross Compile / C++14" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include(polly_clear_environment_variables) 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx14.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-cross-compile-raspberry-pi.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi3.cmake") 24 | include("${CMAKE_CURRENT_LIST_DIR}/os/raspberry-pi-hardfloat.cmake") 25 | -------------------------------------------------------------------------------- /sanitize-address-cxx17-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_ADDRESS_CXX17_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_ADDRESS_CXX17_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang address sanitizer / c++17 support / PIC" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_address.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-address-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_ADDRESS_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_ADDRESS_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang address sanitizer / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_address.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-address.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_ADDRESS_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_ADDRESS_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang address sanitizer / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_address.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-leak-cxx17-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_LEAK_CXX17_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_LEAK_CXX17_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang memory leaks sanitizer / c++17 support / PIC" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_leak.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-leak-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_LEAK_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_LEAK_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang memory leaks sanitizer / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_leak.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-leak.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_LEAK_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_LEAK_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang memory leaks sanitizer / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_leak.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-memory.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_MEMORY_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_MEMORY_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang memory sanitizer / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_memory.cmake") 22 | -------------------------------------------------------------------------------- /sanitize-thread-cxx17-pic.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_THREAD_CXX17_PIC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_THREAD_CXX17_PIC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang thread sanitizer / c++17 support / PIC" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_thread.cmake") 23 | -------------------------------------------------------------------------------- /sanitize-thread-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, 2018 Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_THREAD_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_THREAD_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang thread sanitizer / c++17 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_thread.cmake") 22 | -------------------------------------------------------------------------------- /sanitize-thread.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_SANITIZE_THREAD_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_SANITIZE_THREAD_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Clang thread sanitizer / c++11 support" 14 | "Unix Makefiles" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_thread.cmake") 22 | -------------------------------------------------------------------------------- /scripts/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleExecutable 6 | __BUNDLE_EXECUTABLE__ 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleIdentifier 10 | com.github.ruslo.polly 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleSignature 16 | ???? 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | MinimumOSVersion 22 | __MINIMUM_OS_VERSION__ 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/NoCodeSign.xcconfig: -------------------------------------------------------------------------------- 1 | CODE_SIGNING_REQUIRED = NO 2 | -------------------------------------------------------------------------------- /utilities/polly_fatal_error.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | function(polly_fatal_error) 5 | foreach(print_message ${ARGV}) 6 | message("") 7 | message(${print_message}) 8 | message("") 9 | endforeach() 10 | message(FATAL_ERROR "") 11 | endfunction() 12 | -------------------------------------------------------------------------------- /utilities/polly_init.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_UTILITIES_POLLY_INIT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_UTILITIES_POLLY_INIT_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/polly_fatal_error.cmake") 11 | 12 | macro(polly_init name generator) 13 | set(POLLY_TOOLCHAIN_NAME "${name}") 14 | get_filename_component( 15 | POLLY_TOOLCHAIN_TAG "${CMAKE_CURRENT_LIST_FILE}" NAME_WE 16 | ) 17 | 18 | string(COMPARE EQUAL "${CMAKE_GENERATOR}" "${generator}" _polly_correct) 19 | if(NOT _polly_correct) 20 | polly_fatal_error( 21 | "Please change generator to: ${generator}\n" 22 | "(Current generator: ${CMAKE_GENERATOR})" 23 | ) 24 | endif() 25 | set(HUNTER_CMAKE_GENERATOR "${generator}") 26 | endmacro() 27 | -------------------------------------------------------------------------------- /utilities/polly_ios_bundle_identifier.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_UTILITIES_POLLY_IOS_BUNDLE_IDENTIFIER_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_UTILITIES_POLLY_IOS_BUNDLE_IDENTIFIER_CMAKE_ 1) 8 | endif() 9 | 10 | include(polly_status_debug) 11 | 12 | string(COMPARE EQUAL "$ENV{POLLY_IOS_BUNDLE_IDENTIFIER}" "" _is_empty) 13 | if(_is_empty) 14 | set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.example") 15 | else() 16 | set(MACOSX_BUNDLE_GUI_IDENTIFIER $ENV{POLLY_IOS_BUNDLE_IDENTIFIER}) 17 | endif() 18 | 19 | polly_status_debug( 20 | "Using Xcode bundle identifier: ${MACOSX_BUNDLE_GUI_IDENTIFIER}" 21 | ) 22 | -------------------------------------------------------------------------------- /utilities/polly_module_path.cmake: -------------------------------------------------------------------------------- 1 | # Add extra cmake modules 2 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../find") 3 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") 4 | -------------------------------------------------------------------------------- /utilities/polly_status_debug.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | function(polly_status_debug) 5 | foreach(print_message ${ARGV}) 6 | if(POLLY_STATUS_DEBUG) 7 | message(STATUS "[polly *** DEBUG ***] ${print_message}") 8 | endif() 9 | endforeach() 10 | endfunction() 11 | -------------------------------------------------------------------------------- /utilities/polly_status_print.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | function(polly_status_print) 5 | foreach(print_message ${ARGV}) 6 | if(POLLY_STATUS_PRINT OR POLLY_STATUS_DEBUG) 7 | message(STATUS "[polly] ${print_message}") 8 | endif() 9 | endforeach() 10 | endfunction() 11 | -------------------------------------------------------------------------------- /vs-10-2010.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_10_2010_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_10_2010_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 10 2010" 14 | "Visual Studio 10 2010" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-11-2012-arm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_11_2012_ARM_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_11_2012_ARM_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 11 2012 ARM" 14 | "Visual Studio 11 2012 ARM" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-11-2012-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_11_2012_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_11_2012_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 11 2012 Win64" 14 | "Visual Studio 11 2012 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-11-2012.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_11_2012_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_11_2012_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 11 2012" 14 | "Visual Studio 11 2012" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-12-2013-arm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_12_2013_ARM_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_12_2013_ARM_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 12 2013 ARM" 14 | "Visual Studio 12 2013 ARM" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-12-2013-mt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_12_2013_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_12_2013_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 12 2013 / MT (static)" 14 | "Visual Studio 12 2013" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-mt.cmake") 20 | -------------------------------------------------------------------------------- /vs-12-2013-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_12_2013_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_12_2013_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 12 2013 Win64" 14 | "Visual Studio 12 2013 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-12-2013-xp.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_12_2013_XP_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_12_2013_XP_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 12 2013" 14 | "Visual Studio 12 2013" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-12-2013.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_12_2013_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_12_2013_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 12 2013" 14 | "Visual Studio 12 2013" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-14-2015-arm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_ARM_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_ARM_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015 ARM" 14 | "Visual Studio 14 2015 ARM" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-14-2015-sdk-8-1.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_SDK_8_1_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_SDK_8_1_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015 | SDK 8.1" 14 | "Visual Studio 14 2015" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | set(CMAKE_SYSTEM_VERSION 8.1) 20 | -------------------------------------------------------------------------------- /vs-14-2015-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015 Win64 / C++17" 14 | "Visual Studio 14 2015 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | -------------------------------------------------------------------------------- /vs-14-2015-win64-sdk-8-1-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_WIN64_SDK_8_1_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_WIN64_SDK_8_1_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015 Win64 / C++17 | SDK 8.1" 14 | "Visual Studio 14 2015 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | set(CMAKE_SYSTEM_VERSION 8.1) 21 | -------------------------------------------------------------------------------- /vs-14-2015-win64-sdk-8-1.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_WIN64_SDK_8_1_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_WIN64_SDK_8_1_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015 Win64 | SDK 8.1" 14 | "Visual Studio 14 2015 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | set(CMAKE_SYSTEM_VERSION 8.1) 20 | -------------------------------------------------------------------------------- /vs-14-2015-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015 Win64" 14 | "Visual Studio 14 2015 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-14-2015.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_14_2015_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_14_2015_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 14 2015" 14 | "Visual Studio 14 2015" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-15-2017-arm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_ARM_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_ARM_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 ARM" 14 | "Visual Studio 15 2017" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-arm.cmake") 20 | -------------------------------------------------------------------------------- /vs-15-2017-arm64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_ARM64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_ARM64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 ARM64" 14 | "Visual Studio 15 2017" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-arm64.cmake") 20 | -------------------------------------------------------------------------------- /vs-15-2017-cxx14-mt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_CXX14_MT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_CXX14_MT_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 / C++14 / MT (static)" 14 | "Visual Studio 15 2017" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx14.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-mt.cmake") 21 | -------------------------------------------------------------------------------- /vs-15-2017-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 / C++17" 14 | "Visual Studio 15 2017" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | -------------------------------------------------------------------------------- /vs-15-2017-mt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_MT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_MT_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 / MT (static)" 14 | "Visual Studio 15 2017" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-mt.cmake") 20 | -------------------------------------------------------------------------------- /vs-15-2017-store-10-zw.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_STORE_10_ZW_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_STORE_10_ZW_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(CMAKE_SYSTEM_NAME WindowsStore) 13 | set(CMAKE_SYSTEM_VERSION 10.0) 14 | 15 | polly_init( 16 | "Visual Studio 15 2017 / ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} / ZW" 17 | "Visual Studio 15 2017" 18 | ) 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-zw.cmake") 22 | -------------------------------------------------------------------------------- /vs-15-2017-win64-cxx14-mt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CXX14_MT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CXX14_MT_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 / C++14 / MT (static)" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx14.cmake") 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-mt.cmake") 21 | -------------------------------------------------------------------------------- /vs-15-2017-win64-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 / C++14" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx14.cmake") 19 | -------------------------------------------------------------------------------- /vs-15-2017-win64-cxx17-nonpermissive.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CXX17_NONPERMISSIVE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CXX17_NONPERMISSIVE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 / C++17" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-nonpermissive.cmake") 20 | -------------------------------------------------------------------------------- /vs-15-2017-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 / C++17" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | -------------------------------------------------------------------------------- /vs-15-2017-win64-llvm-vs2014.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 LLVM vs2014" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-15-2017-win64-llvm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 LLVM" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-15-2017-win64-mt.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_MT_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_MT_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 / MT (static)" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-mt.cmake") 20 | -------------------------------------------------------------------------------- /vs-15-2017-win64-store-10-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_STORE_10_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_STORE_10_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(CMAKE_SYSTEM_NAME WindowsStore) 13 | set(CMAKE_SYSTEM_VERSION 10.0) 14 | 15 | polly_init( 16 | "Visual Studio 15 2017 Win64 / ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} / C++17" 17 | "Visual Studio 15 2017 Win64" 18 | ) 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 22 | -------------------------------------------------------------------------------- /vs-15-2017-win64-store-10-zw.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_STORE_10_ZW_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_STORE_10_ZW_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(CMAKE_SYSTEM_NAME WindowsStore) 13 | set(CMAKE_SYSTEM_VERSION 10.0) 14 | 15 | polly_init( 16 | "Visual Studio 15 2017 Win64 / ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} / ZW" 17 | "Visual Studio 15 2017 Win64" 18 | ) 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-zw.cmake") 22 | -------------------------------------------------------------------------------- /vs-15-2017-win64-version-14-11.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_VERSION_14_11_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_VERSION_14_11_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64 / version=14.11" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-version-14-11.cmake") 19 | -------------------------------------------------------------------------------- /vs-15-2017-win64-z7.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_Z7_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_Z7_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-z7.cmake") 19 | -------------------------------------------------------------------------------- /vs-15-2017-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017 Win64" 14 | "Visual Studio 15 2017 Win64" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-15-2017.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_15_2017_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_15_2017_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 15 2017" 14 | "Visual Studio 15 2017" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-16-2019-arm.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_ARM_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_ARM_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 ARM" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-arm.cmake") 20 | -------------------------------------------------------------------------------- /vs-16-2019-arm64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_ARM64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_ARM64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 ARM64" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-arm64.cmake") 20 | -------------------------------------------------------------------------------- /vs-16-2019-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 / C++14" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx14.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-win32.cmake") 21 | -------------------------------------------------------------------------------- /vs-16-2019-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 / C++17" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-win32.cmake") 21 | -------------------------------------------------------------------------------- /vs-16-2019-llvm-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_LLVM_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_LLVM_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 LLVM / C++17" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-win32.cmake") 21 | -------------------------------------------------------------------------------- /vs-16-2019-win64-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 Win64 / C++14" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx14.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 21 | -------------------------------------------------------------------------------- /vs-16-2019-win64-cxx17-cuda-cxx14.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2020, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_CXX17_CUDA_CXX14_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_CXX17_CUDA_CXX14_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 Win64 / C++17 / CUDA C++14" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cuda-cxx14.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 22 | -------------------------------------------------------------------------------- /vs-16-2019-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 Win64 / C++17" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 21 | -------------------------------------------------------------------------------- /vs-16-2019-win64-llvm-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_LLVM_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_LLVM_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 Win64 LLVM / C++17" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 21 | -------------------------------------------------------------------------------- /vs-16-2019-win64-sdk-10-0-18362-0-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2021, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_SDK_10_0_18362_0_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_SDK_10_0_18362_0_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 Win64 / C++17 | Windows SDK 10.0.18362.0" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 21 | 22 | set(CMAKE_SYSTEM_VERSION 10.0.18362.0) 23 | -------------------------------------------------------------------------------- /vs-16-2019-win64-store-10-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2018, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_STORE_10_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_STORE_10_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(CMAKE_SYSTEM_NAME WindowsStore) 13 | set(CMAKE_SYSTEM_VERSION 10.0) 14 | 15 | polly_init( 16 | "Visual Studio 16 2019 Win64 / ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} / C++17" 17 | "Visual Studio 16 2019" 18 | ) 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 21 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 22 | 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 24 | -------------------------------------------------------------------------------- /vs-16-2019-win64.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2019, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_WIN64_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_WIN64_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019 Win64" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 20 | -------------------------------------------------------------------------------- /vs-16-2019.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2017, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_16_2019_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_16_2019_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 16 2019" 14 | "Visual Studio 16 2019" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-win32.cmake") 20 | -------------------------------------------------------------------------------- /vs-17-2022-win64-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015-2022, Ruslan Baratov, Rahul Sheth 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_17_2022_WIN64_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_17_2022_WIN64_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 17 2022 Win64 / C++17" 14 | "Visual Studio 17 2022" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-cxx17.cmake") 19 | 20 | include("${CMAKE_CURRENT_LIST_DIR}/flags/vs-platform-x64.cmake") 21 | -------------------------------------------------------------------------------- /vs-8-2005.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_8_2005_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_8_2005_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 8 2005" 14 | "Visual Studio 8 2005" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /vs-9-2008.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_VS_9_2008_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_VS_9_2008_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | polly_init( 13 | "Visual Studio 9 2008" 14 | "Visual Studio 9 2008" 15 | ) 16 | 17 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 18 | -------------------------------------------------------------------------------- /xcode-cxx17.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_XCODE_CXX17_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_XCODE_CXX17_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(POLLY_XCODE_COMPILER "clang") 13 | polly_init( 14 | "Xcode / ${POLLY_XCODE_COMPILER} / \ 15 | LLVM Standard C++ Library (libc++) / c++17 support" 16 | "Xcode" 17 | ) 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake") 24 | -------------------------------------------------------------------------------- /xcode-cxx20.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_XCODE_CXX20_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_XCODE_CXX20_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(POLLY_XCODE_COMPILER "clang") 13 | polly_init( 14 | "Xcode / ${POLLY_XCODE_COMPILER} / \ 15 | LLVM Standard C++ Library (libc++) / c++20 support" 16 | "Xcode" 17 | ) 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx20.cmake") 24 | -------------------------------------------------------------------------------- /xcode-cxx98.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_XCODE_CXX98_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_XCODE_CXX98_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(POLLY_XCODE_COMPILER "clang") 13 | polly_init( 14 | "Xcode / ${POLLY_XCODE_COMPILER} / \ 15 | LLVM Standard C++ Library (libc++) / c++98 support" 16 | "Xcode" 17 | ) 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx98.cmake") 24 | -------------------------------------------------------------------------------- /xcode-gcc.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_XCODE_GCC_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_XCODE_GCC_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(POLLY_XCODE_COMPILER "gcc") 13 | polly_init( 14 | "Xcode / ${POLLY_XCODE_COMPILER} / \ 15 | LLVM Standard C++ Library (libc++) / c++11 support" 16 | "Xcode" 17 | ) 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 24 | -------------------------------------------------------------------------------- /xcode-nocxx.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2016, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_XCODE_NOCXX_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_XCODE_NOCXX_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(POLLY_XCODE_COMPILER "clang") 13 | polly_init( 14 | "Xcode / ${POLLY_XCODE_COMPILER} / \ 15 | LLVM Standard C++ Library (libc++)" 16 | "Xcode" 17 | ) 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 23 | -------------------------------------------------------------------------------- /xcode.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2015, Ruslan Baratov 2 | # All rights reserved. 3 | 4 | if(DEFINED POLLY_XCODE_CMAKE_) 5 | return() 6 | else() 7 | set(POLLY_XCODE_CMAKE_ 1) 8 | endif() 9 | 10 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") 11 | 12 | set(POLLY_XCODE_COMPILER "clang") 13 | polly_init( 14 | "Xcode / ${POLLY_XCODE_COMPILER} / \ 15 | LLVM Standard C++ Library (libc++) / c++11 support" 16 | "Xcode" 17 | ) 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") 20 | 21 | include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") 22 | include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") 23 | include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") 24 | --------------------------------------------------------------------------------