You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cmake] Make include(GNUInstallDirs) always below project(..)
Its defaulting logic must go after `project(..)` to work correctly, but `project(..)` is often in a standalone condition making this
awkward, since the rest of the condition code may also need GNUInstallDirs.
The good thing is there are the various standalone booleans, which I had missed before. This makes splitting the conditional blocks less awkward.
Reviewed By: arichardson, phosek, beanz, ldionne, #libunwind, #libc, #libc_abi
Differential Revision: https://reviews.llvm.org/D117639
project(ParallelSTL VERSION${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH} LANGUAGES CXX)
20
18
19
+
# Must go below project(..)
20
+
include(GNUInstallDirs)
21
+
21
22
set(PSTL_PARALLEL_BACKEND "serial"CACHESTRING"Threading backend to use. Valid choices are 'serial', 'omp', and 'tbb'. The default is 'serial'.")
22
23
set(PSTL_HIDE_FROM_ABI_PER_TU OFFCACHEBOOL"Whether to constrain ABI-unstable symbols to each translation unit (basically, mark them with C's static keyword).")
23
24
set(_PSTL_HIDE_FROM_ABI_PER_TU ${PSTL_HIDE_FROM_ABI_PER_TU}) # For __pstl_config_site
0 commit comments