summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Do not use include_directories(src) in CMakeLists.txtIvan Maidanski2022-08-241-8/+6
| | | | | | | | (refactoring) * CMakeLists.txt (src): Remove include_directories specification. * CMakeLists.txt (atomic_ops): Specify path to "src" as public. * CMakeLists.txt [enable_gpl] (atomic_ops_gpl): Likewise.
* Use target_compile_definitions instead of target_compile_options (CMake)Ivan Maidanski2022-08-241-3/+4
| | | | | | | | | | (refactoring) * CMakeLists.txt [build_tests] (test_atomic_generalized): Change target_compile_definitions() to target_compile_definitions() and remove "-D" prefix for each defined macro. * CMakeLists.txt [build_tests && CMAKE_USE_PTHREADS_INIT] (test_atomic_pthreads): Likewise.
* Do not use add_definitions in favor of add_compile_definitions (CMake)Ivan Maidanski2022-08-241-6/+6
| | | | | | | | | | | | (refactoring) According to the CMake manual, add_definitions() has been superseded by alternatives like add_compile_definitions(). * CMakeLists.txt (add_definitions): Replace to add_compile_options; remove quotes. * CMakeLists.txt [enable_assertions] (add_compile_options): Remove quotes.
* Pass -D HAVE_MMAP to compiler only for atomic_ops_gpl files (CMake)Ivan Maidanski2022-08-241-3/+3
| | | | | | | | (refactoring) * CMakeLists.txt [enable_gpl] (atomic_ops_gpl): Use target_compile_definitions() to define HAVE_MMAP instead of add_definitions().
* Set default build type to RelWithDebInfo (CMake)Ivan Maidanski2022-08-191-1/+13
| | | | | | | | | | | This enforces -O2 -g options passed to the compiler (in case of the gcc or clang compiler), matching that of the configure-based build. * CMakeLists.txt [!CMAKE_BUILD_TYPE && !CMAKE_CONFIGURATION_TYPES] (CMAKE_BUILD_TYPE): Set to RelWithDebInfo; set property (listing all possible values). * CMakeLists.txt [enable_assertions]: Add -UNDEBUG compile option; add comment.
* Update copyright year in CMakeLists.txt and src/atomic_ops.hIvan Maidanski2022-01-051-1/+1
| | | | | * CMakeLists.txt: Update copyright year. * src/atomic_ops.h: Likewise.
* Support Elbrus 2000 (gcc/e2k)Ivan Maidanski2022-01-051-0/+1
| | | | | | | | | | This commit adds support of the clang compiler (in addition to gcc) for E2K architecture. * CMakeLists.txt [install_headers] (FILES): Install also gcc/e2k.h. * src/atomic_ops.h [__GNUC__ && !AO_USE_PTHREAD_DEFS && !__INTEL_COMPILER && __e2k__]: Include gcc/e2k.h. * src/atomic_ops/sysdeps/gcc/e2k.h: New file.
* Support space-separated flags in CFLAGS_EXTRAIvan Maidanski2021-12-231-1/+2
| | | | | | | (fix of commit 3bce6bcc) * CMakeLists.txt [CFLAGS_EXTRA] (CFLAGS_EXTRA): Apply separate_arguments(UNIX_COMMAND).
* Rename project to libatomic_ops in CMake scriptIvan Maidanski2021-11-091-1/+1
| | | | | | | | | (fix of commit 3bce6bcc1) Match CMake project name to that in AC_INIT of configure.ac. * CMakeLists.txt (project): Rename from atomic_ops to libatomic_ops. * Config.cmake.in (check_required_components): Likewise.
* Remove broken support of bcc and wcc compilers from CMake scriptIvan Maidanski2021-11-091-11/+2
| | | | | | (fix of commit 3bce6bcc1) * CMakeLists.txt [BORLAND || WATCOM] (add_compile_options): Remove.
* Rename LICENSING.txt to LICENSEIvan Maidanski2021-11-081-1/+1
| | | | | | | | | | The license file is more traditionally named as LICENSE. * CMakeLists.txt [enable_docs] (install): Rename LICENSING.txt to LICENSE. * Makefile.am [ENABLE_DOCS] (dist_doc_DATA): Likewise. * README.md (Installation and Usage, Copyright & Warranty): Likewise. * LICENSING.txt: Rename to LICENSE.
* Support build with CMakeIvan Maidanski2021-11-081-0/+353
* CMakeLists.txt: New file. * Config.cmake.in: Likewise. * Makefile.am (EXTRA_DIST): Add CMakeLists.txt, Config.cmake.in. * README.md (Installation and Usage): Describe shortly how to build the package with CMake (and how to disable GPL code in case of CMake). * README_win32.txt: Likewise. * README_details.txt: Document cmake-based build.