André Apitzsch
2045a6af58
build: ( fixes #1156 ) Fix 'FindBoost module is removed' warning
...
See https://cmake.org/cmake/help/latest/policy/CMP0167.html for details.
2024-11-21 11:57:24 +01:00
Gabriel Ferreira
194624068c
build: Prevent python bindings from being enabled along with MPI
...
MPI is not supported by cppyy
2024-11-10 20:11:29 +01:00
Gabriel Ferreira
0e98a8fd87
build: Disable class-memaccess compiler error when using eigen on ARM64
2024-11-04 20:24:24 +01:00
André Apitzsch
df54650281
build: Simplify inclusion of netanim
2024-11-01 12:39:58 +00:00
Gabriel Ferreira
d0b08186b5
build: Specify project source directory for configured header templates
2024-10-11 18:20:41 +00:00
Gabriel Ferreira
626e19da43
build: Fix examples filtering
2024-09-15 14:05:12 +00:00
André Apitzsch
8bc94a1cc3
Use SPDX license identifiers
2024-09-06 19:32:31 +00:00
Gabriel Ferreira
c3236a29fc
build: Refactor build_lib and static/monolib target setups
2024-08-30 23:57:28 +00:00
Gabriel Ferreira
744c0fade4
build: Fix examples filtering
2024-08-30 23:57:28 +00:00
Gabriel Ferreira
b98b408f72
build: Add NS3_FORCE_LOCAL_DEPENDENCIES option to ignore system directories
2024-08-30 23:57:28 +00:00
Gabriel Ferreira
55abe1f10a
build: Limit recursion to speed up configuration in slow filesystems with many files
2024-08-30 23:57:28 +00:00
Gabriel Ferreira
0d051e6705
build: Drop lib prefix from module targets
2024-08-30 23:57:28 +00:00
Gabriel Ferreira
ae248726dc
build: Remove cppyy guard for ARM-based Macs
2024-06-04 14:58:11 +00:00
Nakayama Kenjiro
3c4019304a
build: Enable BSD support
2024-06-02 07:46:55 +00:00
Rui Chen
06a0874647
build: Prevent the redefinition of stdlib_pch target in release builds
...
```
-- Precompiled headers were enabled
CMake Error at build-support/macros-and-definitions.cmake:1272 (add_library):
add_library cannot create ALIAS target "stdlib_pch" because another target
with the same name already exists.
Call Stack (most recent call first):
CMakeLists.txt:149 (process_options)
```
Signed-off-by: Rui Chen <rui@chenrui.dev >
2024-05-26 21:48:38 +00:00
Gabriel Ferreira
8ce6c6f8f7
build: Add dia as a Sphinx dependency
...
It is required by the manual
2024-05-03 18:21:11 +00:00
Gabriel Ferreira
f008b0c9ab
build: Lower optimization of GCC 9 default builds from -Os to -O2
...
A bug in GCC can result in crashes due to excessive memory usage (>10GB)
2024-04-29 14:30:25 +02:00
Gabriel Ferreira
53e653b262
build: Fix trailing semicolon check for GCC pedantic warnings
2024-04-27 11:57:04 +02:00
Gabriel Ferreira
d1fb6b4046
build: Stricter sanitizer checks
2024-04-21 22:26:02 +02:00
Gabriel Ferreira
4ce1982082
build: Disable pedantic checks in GCC9 due to extra semicolon check
2024-04-21 17:02:07 +00:00
Gabriel Ferreira
150fb0e1ce
Enable pedantic checks for C++ conformance
2024-04-21 17:02:07 +00:00
Gabriel Ferreira
ce15778490
build: Include additional headers to the PCH
...
Including: deque, functional, queue, tuple, typeinfo, type_traits and utility
2024-04-21 17:02:07 +00:00
Gabriel Ferreira
03a2015483
build: Set LIBXML2_FOUND to prevent uninitialized variable use in static build
2024-04-18 19:13:47 +00:00
Gabriel Ferreira
c4261cd815
build: ( fixes #1065 ) Avoid lld issue by reverting -Os to -O2 builds on MacOS
2024-04-18 19:13:47 +00:00
Gabriel Ferreira
9b62087072
build: Change default build from -O2 -g to -Os -g
2024-02-27 15:37:32 +01:00
Gabriel Ferreira
1f1c351156
build: refactor handling of lib/lib64 install directories
2023-12-27 20:23:30 +00:00
Gabriel Ferreira
643255e749
build: set ENABLE_FDNETDEV to FALSE on unsupported platforms
2023-11-22 18:10:36 -03:00
Gabriel Ferreira
a7ca50cd44
build: use DEFINED to test the existence of the MSVC variable
2023-11-19 15:39:12 -03:00
Gabriel Ferreira
dcad34924f
build: ( fixes #498 ) explain why features failed to be enabled
2023-11-19 12:35:50 -03:00
Gabriel Ferreira
1bc7211e49
build: use DEFINED to test if CMAKE_CXX_STANDARD is defined
2023-11-19 12:30:11 -03:00
Gabriel Ferreira
4368a29a2f
build: raise error when build_lib is incorrectly used by modules
2023-11-19 12:30:11 -03:00
Gabriel Ferreira
0f45fcd005
build: initialize previously uninitialized variables
2023-11-19 12:30:11 -03:00
Gabriel Ferreira
acd344483a
build: fix IGNORE_PCH forwarding in example macros
2023-11-18 19:22:06 -03:00
Gabriel Ferreira
8a2f4b642c
build: rename optional_visualizer_lib to ns3-optional-visualizer-lib
2023-11-18 19:21:01 -03:00
Gabriel Ferreira
9a3b1ffb68
build: make optional_visualizer_lib into a cache variable
2023-11-18 19:19:04 -03:00
Gabriel Ferreira
008d6abb41
build: set cache variables instead of unsetting them
2023-11-18 19:19:04 -03:00
Gabriel Ferreira
d320f557c0
build: disable warnings on platform specific environment variables
2023-11-18 19:19:03 -03:00
Gabriel Ferreira
9a8fe0b657
build: add macros to disable and enable CMake developer warnings
2023-11-18 19:09:28 -03:00
Gabriel Ferreira
a2250f02ce
build: add new target to check the CMake format
2023-10-28 15:52:56 -03:00
Gabriel Ferreira
c9016a50c1
build: split macros-and-definitions.cmake
2023-10-27 13:19:16 -03:00
Gabriel Ferreira
d595f91f6b
build: remove unnecessary CMake version check
2023-10-27 00:25:05 -03:00
Gabriel Ferreira
33756a9298
build: bump minimum GCC version to 9
2023-10-27 00:12:07 -03:00
André Apitzsch
41ba71b748
build, core: remove code required for cmake versions < 3.12
...
With the raise of the minimal CMake version, this is no longer needed.
2023-10-25 10:28:59 +02:00
Gabriel Ferreira
2622354a0b
build: bump minimum C++ version to C++20
2023-10-19 10:59:23 -03:00
Gabriel Ferreira
4e06af5256
build: disable restrict warning when using GCC 12.1-12.3
...
Prevents warning raised by a compiler bug when using GCC 12.1-12.3 with C++20
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105545
2023-10-19 10:57:02 -03:00
Gabriel Ferreira
9600693fb1
build: disable precompiled headers when using GCC >=12.2
...
Prevents out-of-bounds error bug present in GCC >=12.2 that happens when precompiled headers are used with c++20
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106799
2023-10-19 10:53:59 -03:00
Gabriel Ferreira
269a630910
build, visualizer: update feature messages
2023-09-11 18:53:20 -03:00
Gabriel Ferreira
b7cf3fb52d
build: Add support for custom failure reason for features
2023-09-11 18:53:20 -03:00
Gabriel Ferreira
5686c9279a
build: Prevent python bindings from being enabled on ARM Macs
2023-09-11 18:53:20 -03:00
Gabriel Ferreira
111814bcd3
doc: add VcPkg and CPM docs
2023-08-15 22:32:45 +00:00