-
Notifications
You must be signed in to change notification settings - Fork 26
/
variables.cmake
1135 lines (1007 loc) · 42 KB
/
variables.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright 2020-2023 Bloomberg Finance L.P.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NTF Standard Variables
if (NOT DEFINED NTF_BUILD_FROM_SUPERPROJECT)
if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}")
set(NTF_BUILD_FROM_SUPERPROJECT TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_FROM_SUPERPROJECT FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_FROM_CONTINUOUS_INTEGRATION)
if (DEFINED NTF_CONFIGURE_FROM_CONTINUOUS_INTEGRATION)
set(NTF_BUILD_FROM_CONTINUOUS_INTEGRATION
${NTF_CONFIGURE_FROM_CONTINUOUS_INTEGRATION} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_FROM_CONTINUOUS_INTEGRATION})
set(NTF_BUILD_FROM_CONTINUOUS_INTEGRATION
$ENV{NTF_CONFIGURE_FROM_CONTINUOUS_INTEGRATION} CACHE INTERNAL "")
else()
set(NTF_BUILD_FROM_CONTINUOUS_INTEGRATION FALSE)
endif()
endif()
if (NOT DEFINED NTF_BUILD_FROM_PACKAGING)
if (DEFINED NTF_CONFIGURE_FROM_PACKAGING)
set(NTF_BUILD_FROM_PACKAGING
${NTF_CONFIGURE_FROM_PACKAGING} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_FROM_PACKAGING})
set(NTF_BUILD_FROM_PACKAGING
$ENV{NTF_CONFIGURE_FROM_PACKAGING} CACHE INTERNAL "")
else()
set(NTF_BUILD_FROM_PACKAGING FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_REFROOT)
if (DEFINED DISTRIBUTION_REFROOT)
set(NTF_BUILD_REFROOT ${DISTRIBUTION_REFROOT} CACHE INTERNAL "")
elseif (DEFINED ENV{DISTRIBUTION_REFROOT})
set(NTF_BUILD_REFROOT $ENV{DISTRIBUTION_REFROOT} CACHE INTERNAL "")
elseif (DEFINED NTF_CONFIGURE_REFROOT)
set(NTF_BUILD_REFROOT ${NTF_CONFIGURE_REFROOT} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_REFROOT})
set(NTF_BUILD_REFROOT $ENV{NTF_CONFIGURE_REFROOT} CACHE INTERNAL "")
else()
set(NTF_BUILD_REFROOT "" CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_PREFIX)
if (DEFINED PREFIX)
set(NTF_BUILD_PREFIX ${PREFIX} CACHE INTERNAL "")
elseif (DEFINED ENV{PREFIX})
set(NTF_BUILD_PREFIX $ENV{PREFIX} CACHE INTERNAL "")
elseif (DEFINED NTF_CONFIGURE_PREFIX)
set(NTF_BUILD_PREFIX ${NTF_CONFIGURE_PREFIX} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_PREFIX})
set(NTF_BUILD_PREFIX $ENV{NTF_CONFIGURE_PREFIX} CACHE INTERNAL "")
else()
set(NTF_BUILD_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_UNAME)
if (DEFINED NTF_CONFIGURE_UNAME)
set(NTF_BUILD_UNAME ${NTF_CONFIGURE_UNAME} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_UNAME})
set(NTF_BUILD_UNAME $ENV{NTF_CONFIGURE_UNAME} CACHE INTERNAL "")
else()
set(NTF_BUILD_UNAME ${CMAKE_SYSTEM_NAME} CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_UFID)
if (DEFINED UFID)
set(NTF_BUILD_UFID ${UFID} CACHE INTERNAL "")
elseif (DEFINED ENV{UFID})
set(NTF_BUILD_UFID $ENV{UFID} CACHE INTERNAL "")
elseif (DEFINED NTF_CONFIGURE_UFID)
set(NTF_BUILD_UFID ${NTF_CONFIGURE_UFID} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_UFID})
set(NTF_BUILD_UFID $ENV{NTF_CONFIGURE_UFID} CACHE INTERNAL "")
else()
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(NTF_BUILD_UFID "dbg_exc_mt" CACHE INTERNAL "")
elseif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(NTF_BUILD_UFID "opt_exc_mt" CACHE INTERNAL "")
elseif("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
set(NTF_BUILD_UFID "opt_dbg_exc_mt" CACHE INTERNAL "")
elseif("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
set(NTF_BUILD_UFID "opt_exc_mt" CACHE INTERNAL "")
else()
set(NTF_BUILD_UFID "opt_dbg_exc_mt" CACHE INTERNAL "")
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(NTF_BUILD_UFID "${NTF_BUILD_UFID}_64" CACHE INTERNAL "")
endif()
if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "AIX" AND
NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
set(NTF_BUILD_UFID "${NTF_BUILD_UFID}_cpp17" CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_UNITY)
if (DEFINED NTF_CONFIGURE_UNITY)
set(NTF_BUILD_UNITY ${NTF_CONFIGURE_UNITY} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_UNITY})
set(NTF_BUILD_UNITY $ENV{NTF_CONFIGURE_UNITY} CACHE INTERNAL "")
else()
set(NTF_BUILD_UNITY ${CMAKE_SYSTEM_NAME} CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_DEPRECATED_FEATURES)
if (DEFINED NTF_CONFIGURE_WITH_DEPRECATED_FEATURES)
set(NTF_BUILD_WITH_DEPRECATED_FEATURES
${NTF_CONFIGURE_WITH_DEPRECATED_FEATURES} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_DEPRECATED_FEATURES})
set(NTF_BUILD_WITH_DEPRECATED_FEATURES
$ENV{NTF_CONFIGURE_WITH_DEPRECATED_FEATURES} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_DEPRECATED_FEATURES TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_WARNINGS)
if (DEFINED NTF_CONFIGURE_WITH_WARNINGS)
set(NTF_BUILD_WITH_WARNINGS
${NTF_CONFIGURE_WITH_WARNINGS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_WARNINGS})
set(NTF_BUILD_WITH_WARNINGS
$ENV{NTF_CONFIGURE_WITH_WARNINGS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_WARNINGS FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_WARNINGS_AS_ERRORS)
if (DEFINED NTF_CONFIGURE_WITH_WARNINGS_AS_ERRORS)
set(NTF_BUILD_WITH_WARNINGS_AS_ERRORS
${NTF_CONFIGURE_WITH_WARNINGS_AS_ERRORS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_WARNINGS_AS_ERRORS})
set(NTF_BUILD_WITH_WARNINGS_AS_ERRORS
$ENV{NTF_CONFIGURE_WITH_WARNINGS_AS_ERRORS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_WARNINGS_AS_ERRORS FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_DOCUMENTATION)
if (DEFINED NTF_CONFIGURE_WITH_DOCUMENTATION)
set(NTF_BUILD_WITH_DOCUMENTATION
${NTF_CONFIGURE_WITH_DOCUMENTATION} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_DOCUMENTATION})
set(NTF_BUILD_WITH_DOCUMENTATION
$ENV{NTF_CONFIGURE_WITH_DOCUMENTATION} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_DOCUMENTATION FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_DOCUMENTATION_INTERNAL)
if (DEFINED NTF_CONFIGURE_WITH_DOCUMENTATION_INTERNAL)
set(NTF_BUILD_WITH_DOCUMENTATION_INTERNAL
${NTF_CONFIGURE_WITH_DOCUMENTATION_INTERNAL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_DOCUMENTATION_INTERNAL})
set(NTF_BUILD_WITH_DOCUMENTATION_INTERNAL
$ENV{NTF_CONFIGURE_WITH_DOCUMENTATION_INTERNAL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_DOCUMENTATION_INTERNAL FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_COVERAGE)
if (DEFINED NTF_CONFIGURE_WITH_COVERAGE)
set(NTF_BUILD_WITH_COVERAGE
${NTF_CONFIGURE_WITH_COVERAGE} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_COVERAGE})
set(NTF_BUILD_WITH_COVERAGE
$ENV{NTF_CONFIGURE_WITH_COVERAGE} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_COVERAGE FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_VALGRIND)
if (DEFINED NTF_CONFIGURE_WITH_VALGRIND)
set(NTF_BUILD_WITH_VALGRIND
${NTF_CONFIGURE_WITH_VALGRIND} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_VALGRIND})
set(NTF_BUILD_WITH_VALGRIND
$ENV{NTF_CONFIGURE_WITH_VALGRIND} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_VALGRIND FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_TIME_TRACE)
if (DEFINED NTF_CONFIGURE_WITH_TIME_TRACE)
set(NTF_BUILD_WITH_TIME_TRACE
${NTF_CONFIGURE_WITH_TIME_TRACE} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_TIME_TRACE})
set(NTF_BUILD_WITH_TIME_TRACE
$ENV{NTF_CONFIGURE_WITH_TIME_TRACE} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_TIME_TRACE FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_TIME_REPORT)
if (DEFINED NTF_CONFIGURE_WITH_TIME_REPORT)
set(NTF_BUILD_WITH_TIME_REPORT
${NTF_CONFIGURE_WITH_TIME_REPORT} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_TIME_REPORT})
set(NTF_BUILD_WITH_TIME_REPORT
$ENV{NTF_CONFIGURE_WITH_TIME_REPORT} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_TIME_REPORT FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_STACK_TRACE_LEAK_REPORT)
if (DEFINED NTF_CONFIGURE_WITH_STACK_TRACE_LEAK_REPORT)
set(NTF_BUILD_WITH_STACK_TRACE_LEAK_REPORT
${NTF_CONFIGURE_WITH_STACK_TRACE_LEAK_REPORT} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_STACK_TRACE_LEAK_REPORT})
set(NTF_BUILD_WITH_STACK_TRACE_LEAK_REPORT
$ENV{NTF_CONFIGURE_WITH_STACK_TRACE_LEAK_REPORT} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_STACK_TRACE_LEAK_REPORT FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_STACK_TRACE_TEST_ALLOCATOR)
if (DEFINED NTF_CONFIGURE_WITH_STACK_TRACE_TEST_ALLOCATOR)
set(NTF_BUILD_WITH_STACK_TRACE_TEST_ALLOCATOR
${NTF_CONFIGURE_WITH_STACK_TRACE_TEST_ALLOCATOR} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_STACK_TRACE_TEST_ALLOCATOR})
set(NTF_BUILD_WITH_STACK_TRACE_TEST_ALLOCATOR
$ENV{NTF_CONFIGURE_WITH_STACK_TRACE_TEST_ALLOCATOR} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_STACK_TRACE_TEST_ALLOCATOR FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_USAGE_EXAMPLES)
if (DEFINED NTF_CONFIGURE_WITH_USAGE_EXAMPLES)
set(NTF_BUILD_WITH_USAGE_EXAMPLES
${NTF_CONFIGURE_WITH_USAGE_EXAMPLES} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_USAGE_EXAMPLES})
set(NTF_BUILD_WITH_USAGE_EXAMPLES
$ENV{NTF_CONFIGURE_WITH_USAGE_EXAMPLES} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_USAGE_EXAMPLES TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_MOCKS)
if (DEFINED NTF_CONFIGURE_WITH_MOCKS)
set(NTF_BUILD_WITH_MOCKS
${NTF_CONFIGURE_WITH_MOCKS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_MOCKS})
set(NTF_BUILD_WITH_MOCKS
$ENV{NTF_CONFIGURE_WITH_MOCKS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_MOCKS FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_INTEGRATION_TESTS)
if (DEFINED NTF_CONFIGURE_WITH_INTEGRATION_TESTS)
set(NTF_BUILD_WITH_INTEGRATION_TESTS
${NTF_CONFIGURE_WITH_INTEGRATION_TESTS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_INTEGRATION_TESTS})
set(NTF_BUILD_WITH_INTEGRATION_TESTS
$ENV{NTF_CONFIGURE_WITH_INTEGRATION_TESTS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_INTEGRATION_TESTS FALSE CACHE INTERNAL "")
endif()
endif()
# NTF Repository Variables
if (NOT DEFINED NTF_BUILD_WITH_BSL)
if (DEFINED NTF_CONFIGURE_WITH_BSL)
set(NTF_BUILD_WITH_BSL ${NTF_CONFIGURE_WITH_BSL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_BSL})
set(NTF_BUILD_WITH_BSL $ENV{NTF_CONFIGURE_WITH_BSL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_BSL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_BDL)
if (DEFINED NTF_CONFIGURE_WITH_BDL)
set(NTF_BUILD_WITH_BDL ${NTF_CONFIGURE_WITH_BDL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_BDL})
set(NTF_BUILD_WITH_BDL $ENV{NTF_CONFIGURE_WITH_BDL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_BDL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_BAL)
if (DEFINED NTF_CONFIGURE_WITH_BAL)
set(NTF_BUILD_WITH_BAL ${NTF_CONFIGURE_WITH_BAL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_BAL})
set(NTF_BUILD_WITH_BAL $ENV{NTF_CONFIGURE_WITH_BAL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_BAL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_NTS)
if (DEFINED NTF_CONFIGURE_WITH_NTS)
set(NTF_BUILD_WITH_NTS ${NTF_CONFIGURE_WITH_NTS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_NTS})
set(NTF_BUILD_WITH_NTS $ENV{NTF_CONFIGURE_WITH_NTS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_NTS TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_NTC)
if (DEFINED NTF_CONFIGURE_WITH_NTC)
set(NTF_BUILD_WITH_NTC ${NTF_CONFIGURE_WITH_NTC} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_NTC})
set(NTF_BUILD_WITH_NTC $ENV{NTF_CONFIGURE_WITH_NTC} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_NTC TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_ADDRESS_FAMILY_IPV4)
if (DEFINED NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV4)
set(NTF_BUILD_WITH_ADDRESS_FAMILY_IPV4
${NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV4} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV4})
set(NTF_BUILD_WITH_ADDRESS_FAMILY_IPV4
$ENV{NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV4} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_ADDRESS_FAMILY_IPV4 TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_ADDRESS_FAMILY_IPV6)
if (DEFINED NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV6)
set(NTF_BUILD_WITH_ADDRESS_FAMILY_IPV6
${NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV6} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV6})
set(NTF_BUILD_WITH_ADDRESS_FAMILY_IPV6
$ENV{NTF_CONFIGURE_WITH_ADDRESS_FAMILY_IPV6} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_ADDRESS_FAMILY_IPV6 TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_ADDRESS_FAMILY_LOCAL)
if (DEFINED NTF_CONFIGURE_WITH_ADDRESS_FAMILY_LOCAL)
set(NTF_BUILD_WITH_ADDRESS_FAMILY_LOCAL
${NTF_CONFIGURE_WITH_ADDRESS_FAMILY_LOCAL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_ADDRESS_FAMILY_LOCAL})
set(NTF_BUILD_WITH_ADDRESS_FAMILY_LOCAL
$ENV{NTF_CONFIGURE_WITH_ADDRESS_FAMILY_LOCAL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_ADDRESS_FAMILY_LOCAL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_TRANSPORT_PROTOCOL_TCP)
if (DEFINED NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_TCP)
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_TCP
${NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_TCP} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_TCP})
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_TCP
$ENV{NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_TCP} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_TCP TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_TRANSPORT_PROTOCOL_UDP)
if (DEFINED NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_UDP)
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_UDP
${NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_UDP} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_UDP})
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_UDP
$ENV{NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_UDP} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_UDP TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_TRANSPORT_PROTOCOL_LOCAL)
if (DEFINED NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_LOCAL)
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_LOCAL
${NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_LOCAL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_LOCAL})
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_LOCAL
$ENV{NTF_CONFIGURE_WITH_TRANSPORT_PROTOCOL_LOCAL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_TRANSPORT_PROTOCOL_LOCAL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_SELECT)
if (DEFINED NTF_CONFIGURE_WITH_SELECT)
set(NTF_BUILD_WITH_SELECT
${NTF_CONFIGURE_WITH_SELECT} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_SELECT})
set(NTF_BUILD_WITH_SELECT
$ENV{NTF_CONFIGURE_WITH_SELECT} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_SELECT TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_POLL)
if (DEFINED NTF_CONFIGURE_WITH_POLL)
set(NTF_BUILD_WITH_POLL
${NTF_CONFIGURE_WITH_POLL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_POLL})
set(NTF_BUILD_WITH_POLL
$ENV{NTF_CONFIGURE_WITH_POLL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_POLL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_EPOLL)
if (DEFINED NTF_CONFIGURE_WITH_EPOLL)
set(NTF_BUILD_WITH_EPOLL
${NTF_CONFIGURE_WITH_EPOLL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_EPOLL})
set(NTF_BUILD_WITH_EPOLL
$ENV{NTF_CONFIGURE_WITH_EPOLL} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NTF_BUILD_WITH_EPOLL TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_EPOLL FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_DEVPOLL)
if (DEFINED NTF_CONFIGURE_WITH_DEVPOLL)
set(NTF_BUILD_WITH_DEVPOLL
${NTF_CONFIGURE_WITH_DEVPOLL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_DEVPOLL})
set(NTF_BUILD_WITH_DEVPOLL
$ENV{NTF_CONFIGURE_WITH_DEVPOLL} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
set(NTF_BUILD_WITH_DEVPOLL TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_DEVPOLL FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_EVENTPORT)
if (DEFINED NTF_CONFIGURE_WITH_EVENTPORT)
set(NTF_BUILD_WITH_EVENTPORT
${NTF_CONFIGURE_WITH_EVENTPORT} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_EVENTPORT})
set(NTF_BUILD_WITH_EVENTPORT
$ENV{NTF_CONFIGURE_WITH_EVENTPORT} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
set(NTF_BUILD_WITH_EVENTPORT TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_EVENTPORT FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_POLLSET)
if (DEFINED NTF_CONFIGURE_WITH_POLLSET)
set(NTF_BUILD_WITH_POLLSET
${NTF_CONFIGURE_WITH_POLLSET} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_POLLSET})
set(NTF_BUILD_WITH_POLLSET
$ENV{NTF_CONFIGURE_WITH_POLLSET} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "AIX")
set(NTF_BUILD_WITH_POLLSET TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_POLLSET FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_KQUEUE)
if (DEFINED NTF_CONFIGURE_WITH_KQUEUE)
set(NTF_BUILD_WITH_KQUEUE
${NTF_CONFIGURE_WITH_KQUEUE} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_KQUEUE})
set(NTF_BUILD_WITH_KQUEUE
$ENV{NTF_CONFIGURE_WITH_KQUEUE} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR
${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
set(NTF_BUILD_WITH_KQUEUE TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_KQUEUE FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_IOCP)
if (DEFINED NTF_CONFIGURE_WITH_IOCP)
set(NTF_BUILD_WITH_IOCP
${NTF_CONFIGURE_WITH_IOCP} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_IOCP})
set(NTF_BUILD_WITH_IOCP
$ENV{NTF_CONFIGURE_WITH_IOCP} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(NTF_BUILD_WITH_IOCP TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_IOCP FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_IORING)
if (DEFINED NTF_CONFIGURE_WITH_IORING)
set(NTF_BUILD_WITH_IORING
${NTF_CONFIGURE_WITH_IORING} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_IORING})
set(NTF_BUILD_WITH_IORING
$ENV{NTF_CONFIGURE_WITH_IORING} CACHE INTERNAL "")
else()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NTF_BUILD_WITH_IORING FALSE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_IORING FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_OPENSSL)
if (DEFINED NTF_CONFIGURE_WITH_OPENSSL)
set(NTF_BUILD_WITH_OPENSSL
${NTF_CONFIGURE_WITH_OPENSSL} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_OPENSSL})
set(NTF_BUILD_WITH_OPENSSL
$ENV{NTF_CONFIGURE_WITH_OPENSSL} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_OPENSSL TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_DYNAMIC_LOAD_BALANCING)
if (DEFINED NTF_CONFIGURE_WITH_DYNAMIC_LOAD_BALANCING)
set(NTF_BUILD_WITH_DYNAMIC_LOAD_BALANCING
${NTF_CONFIGURE_WITH_DYNAMIC_LOAD_BALANCING} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_DYNAMIC_LOAD_BALANCING})
set(NTF_BUILD_WITH_DYNAMIC_LOAD_BALANCING
$ENV{NTF_CONFIGURE_WITH_DYNAMIC_LOAD_BALANCING} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_DYNAMIC_LOAD_BALANCING TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_THREAD_SCALING)
if (DEFINED NTF_CONFIGURE_WITH_THREAD_SCALING)
set(NTF_BUILD_WITH_THREAD_SCALING
${NTF_CONFIGURE_WITH_THREAD_SCALING} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_THREAD_SCALING})
set(NTF_BUILD_WITH_THREAD_SCALING
$ENV{NTF_CONFIGURE_WITH_THREAD_SCALING} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_THREAD_SCALING TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_LOGGING)
if (DEFINED NTF_CONFIGURE_WITH_LOGGING)
set(NTF_BUILD_WITH_LOGGING
${NTF_CONFIGURE_WITH_LOGGING} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_LOGGING})
set(NTF_BUILD_WITH_LOGGING
$ENV{NTF_CONFIGURE_WITH_LOGGING} CACHE INTERNAL "")
else()
if (NOT "${UFID}" STREQUAL "")
if (NOT ${UFID} MATCHES "opt")
set(NTF_BUILD_WITH_LOGGING TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_LOGGING FALSE CACHE INTERNAL "")
endif()
else()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(NTF_BUILD_WITH_LOGGING TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_LOGGING FALSE CACHE INTERNAL "")
endif()
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_METRICS)
if (DEFINED NTF_CONFIGURE_WITH_METRICS)
set(NTF_BUILD_WITH_METRICS
${NTF_CONFIGURE_WITH_METRICS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_METRICS})
set(NTF_BUILD_WITH_METRICS
$ENV{NTF_CONFIGURE_WITH_METRICS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_METRICS TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_INLINING_SUGGESTED)
if (DEFINED NTF_CONFIGURE_WITH_INLINING_SUGGESTED)
set(NTF_BUILD_WITH_INLINING_SUGGESTED
${NTF_CONFIGURE_WITH_INLINING_SUGGESTED} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_INLINING_SUGGESTED})
set(NTF_BUILD_WITH_INLINING_SUGGESTED
$ENV{NTF_CONFIGURE_WITH_INLINING_SUGGESTED} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_INLINING_SUGGESTED FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_INLINING_FORCED)
if (DEFINED NTF_CONFIGURE_WITH_INLINING_FORCED)
set(NTF_BUILD_WITH_INLINING_FORCED
${NTF_CONFIGURE_WITH_INLINING_FORCED} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_INLINING_FORCED})
set(NTF_BUILD_WITH_INLINING_FORCED
$ENV{NTF_CONFIGURE_WITH_INLINING_FORCED} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_INLINING_FORCED TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_INLINING_DISABLED)
if (DEFINED NTF_CONFIGURE_WITH_INLINING_DISABLED)
set(NTF_BUILD_WITH_INLINING_DISABLED
${NTF_CONFIGURE_WITH_INLINING_DISABLED} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_INLINING_DISABLED})
set(NTF_BUILD_WITH_INLINING_DISABLED
$ENV{NTF_CONFIGURE_WITH_INLINING_DISABLED} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_INLINING_DISABLED FALSE CACHE INTERNAL "")
endif()
endif()
if (${NTF_BUILD_WITH_INLINING_DISABLED})
set(NTF_BUILD_WITH_INLINING_SUGGESTED FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_INLINING_FORCED FALSE CACHE INTERNAL "")
endif()
if (${NTF_BUILD_WITH_INLINING_FORCED})
set(NTF_BUILD_WITH_INLINING_DISABLED FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_INLINING_SUGGESTED FALSE CACHE INTERNAL "")
endif()
if (${NTF_BUILD_WITH_INLINING_SUGGESTED})
set(NTF_BUILD_WITH_INLINING_DISABLED FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_INLINING_FORCED FALSE CACHE INTERNAL "")
endif()
if (NOT ${NTF_BUILD_WITH_INLINING_DISABLED} AND
NOT ${NTF_BUILD_WITH_INLINING_FORCED} AND
NOT ${NTF_BUILD_WITH_INLINING_SUGGESTED})
set(NTF_BUILD_WITH_INLINING_FORCED TRUE CACHE INTERNAL "")
endif()
if (NOT DEFINED NTF_BUILD_WITH_BRANCH_PREDICTION)
if (DEFINED NTF_CONFIGURE_WITH_BRANCH_PREDICTION)
set(NTF_BUILD_WITH_BRANCH_PREDICTION
${NTF_CONFIGURE_WITH_BRANCH_PREDICTION} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_BRANCH_PREDICTION})
set(NTF_BUILD_WITH_BRANCH_PREDICTION
$ENV{NTF_CONFIGURE_WITH_BRANCH_PREDICTION} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_BRANCH_PREDICTION TRUE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_SPIN_LOCKS)
if (DEFINED NTF_CONFIGURE_WITH_SPIN_LOCKS)
set(NTF_BUILD_WITH_SPIN_LOCKS
${NTF_CONFIGURE_WITH_SPIN_LOCKS} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_SPIN_LOCKS})
set(NTF_BUILD_WITH_SPIN_LOCKS
$ENV{NTF_CONFIGURE_WITH_SPIN_LOCKS} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_SPIN_LOCKS FALSE CACHE INTERNAL "")
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_USERSPACE_MUTEXES)
if (DEFINED NTF_CONFIGURE_WITH_USERSPACE_MUTEXES)
set(NTF_BUILD_WITH_USERSPACE_MUTEXES
${NTF_CONFIGURE_WITH_USERSPACE_MUTEXES} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_USERSPACE_MUTEXES})
set(NTF_BUILD_WITH_USERSPACE_MUTEXES
$ENV{NTF_CONFIGURE_WITH_USERSPACE_MUTEXES} CACHE INTERNAL "")
else()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NTF_BUILD_WITH_USERSPACE_MUTEXES TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_USERSPACE_MUTEXES FALSE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_SYSTEM_MUTEXES)
if (DEFINED NTF_CONFIGURE_WITH_SYSTEM_MUTEXES)
set(NTF_BUILD_WITH_SYSTEM_MUTEXES
${NTF_CONFIGURE_WITH_SYSTEM_MUTEXES} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_SYSTEM_MUTEXES})
set(NTF_BUILD_WITH_SYSTEM_MUTEXES
$ENV{NTF_CONFIGURE_WITH_SYSTEM_MUTEXES} CACHE INTERNAL "")
else()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NTF_BUILD_WITH_SYSTEM_MUTEXES FALSE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_SYSTEM_MUTEXES TRUE CACHE INTERNAL "")
endif()
endif()
endif()
if (NOT DEFINED NTF_BUILD_WITH_RECURSIVE_MUTEXES)
if (DEFINED NTF_CONFIGURE_WITH_RECURSIVE_MUTEXES)
set(NTF_BUILD_WITH_RECURSIVE_MUTEXES
${NTF_CONFIGURE_WITH_RECURSIVE_MUTEXES} CACHE INTERNAL "")
elseif (DEFINED ENV{NTF_CONFIGURE_WITH_RECURSIVE_MUTEXES})
set(NTF_BUILD_WITH_RECURSIVE_MUTEXES
$ENV{NTF_CONFIGURE_WITH_RECURSIVE_MUTEXES} CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_RECURSIVE_MUTEXES FALSE CACHE INTERNAL "")
endif()
endif()
if (${NTF_BUILD_WITH_SPIN_LOCKS})
set(NTF_BUILD_WITH_USERSPACE_MUTEXES FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_SYSTEM_MUTEXES FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_RECURSIVE_MUTEXES FALSE CACHE INTERNAL "")
endif()
if (${NTF_BUILD_WITH_USERSPACE_MUTEXES})
set(NTF_BUILD_WITH_SPIN_LOCKS FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_SYSTEM_MUTEXES FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_RECURSIVE_MUTEXES FALSE CACHE INTERNAL "")
endif()
if (${NTF_BUILD_WITH_SYSTEM_MUTEXES})
set(NTF_BUILD_WITH_SPIN_LOCKS FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_USERSPACE_MUTEXES FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_RECURSIVE_MUTEXES FALSE CACHE INTERNAL "")
endif()
if (${NTF_BUILD_WITH_RECURSIVE_MUTEXES})
set(NTF_BUILD_WITH_SPIN_LOCKS FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_USERSPACE_MUTEXES FALSE CACHE INTERNAL "")
set(NTF_BUILD_WITH_SYSTEM_MUTEXES FALSE CACHE INTERNAL "")
endif()
if (NOT ${NTF_BUILD_WITH_SPIN_LOCKS} AND
NOT ${NTF_BUILD_WITH_USERSPACE_MUTEXES} AND
NOT ${NTF_BUILD_WITH_SYSTEM_MUTEXES} AND
NOT ${NTF_BUILD_WITH_RECURSIVE_MUTEXES})
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NTF_BUILD_WITH_USERSPACE_MUTEXES TRUE CACHE INTERNAL "")
else()
set(NTF_BUILD_WITH_SYSTEM_MUTEXES TRUE CACHE INTERNAL "")
endif()
endif()
# Convert NTF_BUILD_* "boolean" variables into 0 or 1 for suitability for
# use in generating the configuration headers.
unset(NTF_BUILD_VARIABLE_LIST)
get_cmake_property(NTF_BUILD_VARIABLE_LIST VARIABLES)
list(SORT NTF_BUILD_VARIABLE_LIST)
foreach (NTF_BUILD_VARIABLE_NAME ${NTF_BUILD_VARIABLE_LIST})
if (NTF_BUILD_VARIABLE_NAME MATCHES "NTF_BUILD_")
string(TOUPPER "${${NTF_BUILD_VARIABLE_NAME}}"
NTF_BUILD_VARIABLE_VALUE)
if ("${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "Y" OR
"${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "YES" OR
"${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "ON" OR
"${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "TRUE")
set(${NTF_BUILD_VARIABLE_NAME} 1 CACHE INTERNAL "")
endif()
if ("${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "N" OR
"${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "NO" OR
"${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "OFF" OR
"${NTF_BUILD_VARIABLE_VALUE}" STREQUAL "FALSE")
set(${NTF_BUILD_VARIABLE_NAME} 0 CACHE INTERNAL "")
endif()
endif()
endforeach()
unset(NTF_BUILD_VARIABLE_NAME)
unset(NTF_BUILD_VARIABLE_VALUE)
unset(NTF_BUILD_VARIABLE_LIST)
# Print variables.
message(STATUS "NTF: Repository: ${CMAKE_CURRENT_LIST_DIR}")
message(STATUS "NTF: Distribution refroot: ${NTF_BUILD_REFROOT}")
message(STATUS "NTF: Installation prefix: ${NTF_BUILD_PREFIX}")
message(STATUS "NTF: CMAKE_INCLUDE_PATH: ${CMAKE_INCLUDE_PATH}")
message(STATUS "NTF: CMAKE_SYSTEM_INCLUDE_PATH: ${CMAKE_SYSTEM_INCLUDE_PATH}")
message(STATUS "NTF: CMAKE_LIBRARY_PATH: ${CMAKE_LIBRARY_PATH}")
message(STATUS "NTF: CMAKE_SYSTEM_LIBRARY_PATH: ${CMAKE_SYSTEM_LIBRARY_PATH}")
message(STATUS "NTF: CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
message(STATUS "NTF: CMAKE_SYSTEM_PREFIX_PATH: ${CMAKE_SYSTEM_PREFIX_PATH}")
message(STATUS "NTF: PKG_CONFIG_PATH: $ENV{PKG_CONFIG_PATH}")
message(STATUS "NTF: Platform: ${NTF_BUILD_UNAME}")
message(STATUS "NTF: UFID: ${NTF_BUILD_UFID}")
message(STATUS "NTF: Bitness: ${CMAKE_SIZEOF_VOID_P}")
if (${NTF_BUILD_FROM_SUPERPROJECT})
message(STATUS "NTF: Building from superproject: yes")
else()
message(STATUS "NTF: Building from superproject: no")
endif()
if (${NTF_BUILD_FROM_PACKAGING})
message(STATUS "NTF: Building from packaging: yes")
else()
message(STATUS "NTF: Building from packaging: no")
endif()
if (${NTF_BUILD_FROM_CONTINUOUS_INTEGRATION})
message(STATUS "NTF: Building from continuous integration: yes")
else()
message(STATUS "NTF: Building from continuous integration: no")
endif()
if (${NTF_BUILD_WITH_USAGE_EXAMPLES})
message(STATUS "NTF: Building with usage examples: yes")
else()
message(STATUS "NTF: Building with usage examples: no")
endif()
if (${NTF_BUILD_WITH_MOCKS})
message(STATUS "NTF: Building with mocks: yes")
else()
message(STATUS "NTF: Building with mocks: no")
endif()
if (${NTF_BUILD_WITH_INTEGRATION_TESTS})
message(STATUS "NTF: Building with integration tests: yes")
else()
message(STATUS "NTF: Building with integration tests: no")
endif()
if (${NTF_BUILD_WITH_BSL})
message(STATUS "NTF: Building with BSL: yes")
else()
message(STATUS "NTF: Building with BSL: no")
endif()
if (${NTF_BUILD_WITH_BDL})
message(STATUS "NTF: Building with BDL: yes")
else()
message(STATUS "NTF: Building with BDL: no")
endif()
if (${NTF_BUILD_WITH_BAL})
message(STATUS "NTF: Building with BAL: yes")
else()
message(STATUS "NTF: Building with BAL: no")
endif()
if (${NTF_BUILD_WITH_NTS})
message(STATUS "NTF: Building with NTS: yes")
else()
message(STATUS "NTF: Building with NTS: no")
endif()
if (${NTF_BUILD_WITH_NTC})
message(STATUS "NTF: Building with NTC: yes")
else()
message(STATUS "NTF: Building with NTC: no")
endif()
if (${NTF_BUILD_WITH_ADDRESS_FAMILY_IPV4})
message(STATUS "NTF: Building with IPv4: yes")
else()
message(STATUS "NTF: Building with IPv4: no")
endif()
if (${NTF_BUILD_WITH_ADDRESS_FAMILY_IPV6})
message(STATUS "NTF: Building with IPv6: yes")
else()
message(STATUS "NTF: Building with IPv6: no")
endif()
if (${NTF_BUILD_WITH_TRANSPORT_PROTOCOL_TCP})
message(STATUS "NTF: Building with TCP: yes")
else()
message(STATUS "NTF: Building with TCP: no")
endif()
if (${NTF_BUILD_WITH_TRANSPORT_PROTOCOL_UDP})
message(STATUS "NTF: Building with UDP: yes")
else()
message(STATUS "NTF: Building with UDP: no")
endif()
if (${NTF_BUILD_WITH_TRANSPORT_PROTOCOL_LOCAL})
message(STATUS "NTF: Building with Unix domain sockets: yes")
else()
message(STATUS "NTF: Building with Unix domain sockets: no")
endif()
if (${NTF_BUILD_WITH_SELECT})
message(STATUS "NTF: Building with select: yes")
else()
message(STATUS "NTF: Building with select: no")
endif()
if (${NTF_BUILD_WITH_POLL})
message(STATUS "NTF: Building with poll: yes")
else()
message(STATUS "NTF: Building with poll: no")
endif()
if (${NTF_BUILD_WITH_EPOLL})
message(STATUS "NTF: Building with epoll: yes")
else()
message(STATUS "NTF: Building with epoll: no")
endif()
if (${NTF_BUILD_WITH_DEVPOLL})
message(STATUS "NTF: Building with /dev/poll: yes")
else()
message(STATUS "NTF: Building with /dev/poll: no")
endif()
if (${NTF_BUILD_WITH_EVENTPORT})
message(STATUS "NTF: Building with event port: yes")
else()
message(STATUS "NTF: Building with event port: no")
endif()
if (${NTF_BUILD_WITH_POLLSET})
message(STATUS "NTF: Building with pollset: yes")
else()
message(STATUS "NTF: Building with pollset: no")
endif()
if (${NTF_BUILD_WITH_KQUEUE})
message(STATUS "NTF: Building with kqueue: yes")
else()
message(STATUS "NTF: Building with kqueue: no")
endif()
if (${NTF_BUILD_WITH_IORING})
message(STATUS "NTF: Building with io_uring: yes")
else()
message(STATUS "NTF: Building with io_uring: no")
endif()
if (${NTF_BUILD_WITH_IOCP})
message(STATUS "NTF: Building with I/O completion ports: yes")
else()
message(STATUS "NTF: Building with I/O completion ports: no")
endif()
if (${NTF_BUILD_WITH_OPENSSL})
message(STATUS "NTF: Building with OpenSSL: yes")
else()
message(STATUS "NTF: Building with OpenSSL: no")
endif()
if (${NTF_BUILD_WITH_DYNAMIC_LOAD_BALANCING})
message(STATUS "NTF: Building with dynamic load balancing: yes")