diff --git a/build-support/custom-modules/ns3-module-macros.cmake b/build-support/custom-modules/ns3-module-macros.cmake index 32a4df3b2..f5c8d370e 100644 --- a/build-support/custom-modules/ns3-module-macros.cmake +++ b/build-support/custom-modules/ns3-module-macros.cmake @@ -66,7 +66,7 @@ function(build_lib) "${BLIB_HEADER_FILES}" ) - if(${PRECOMPILE_HEADERS_ENABLED} AND (NOT ${IGNORE_PCH})) + if(${PRECOMPILE_HEADERS_ENABLED} AND (NOT ${BLIB_IGNORE_PCH})) target_precompile_headers(${lib${BLIB_LIBNAME}-obj} REUSE_FROM stdlib_pch) endif() @@ -80,7 +80,7 @@ function(build_lib) # specific path for that add_library(${lib${BLIB_LIBNAME}} SHARED "${BLIB_SOURCE_FILES}") - if(${PRECOMPILE_HEADERS_ENABLED} AND (NOT ${IGNORE_PCH})) + if(${PRECOMPILE_HEADERS_ENABLED} AND (NOT ${BLIB_IGNORE_PCH})) target_precompile_headers(${lib${BLIB_LIBNAME}} REUSE_FROM stdlib_pch) endif() endif() @@ -245,7 +245,7 @@ function(build_lib) target_compile_definitions( ${test${BLIB_LIBNAME}} PRIVATE NS_TEST_SOURCEDIR="${FOLDER}/test" ) - if(${PRECOMPILE_HEADERS_ENABLED} AND (NOT ${IGNORE_PCH})) + if(${PRECOMPILE_HEADERS_ENABLED} AND (NOT ${BLIB_IGNORE_PCH})) target_precompile_headers(${test${BLIB_LIBNAME}} REUSE_FROM stdlib_pch) endif() endif() diff --git a/build-support/macros-and-definitions.cmake b/build-support/macros-and-definitions.cmake index 75ffb188e..dcfe4d64b 100644 --- a/build-support/macros-and-definitions.cmake +++ b/build-support/macros-and-definitions.cmake @@ -1237,23 +1237,23 @@ macro(process_options) if(${PRECOMPILE_HEADERS_ENABLED}) set(precompiled_header_libraries - - - - - - - - + + + + + + + + + - - - - - - + + + + + ) add_library(stdlib_pch OBJECT ${PROJECT_SOURCE_DIR}/build-support/empty.cc) target_precompile_headers(