build: units_as_system renamed to unitsAsSystem

This commit is contained in:
Mateusz Pusz
2021-11-05 23:36:14 +01:00
parent f9fb6cc8b3
commit ec6b625135
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ include(AddUnitsModule)
include(GNUInstallDirs)
if(${projectPrefix}AS_SYSTEM_HEADERS)
set(units_as_system SYSTEM)
set(unitsAsSystem SYSTEM)
endif()
add_subdirectory(core)

View File

@@ -28,7 +28,7 @@ cmake_minimum_required(VERSION 3.15)
function(add_units_module name)
add_library(mp-units-${name} INTERFACE)
target_link_libraries(mp-units-${name} INTERFACE ${ARGN})
target_include_directories(mp-units-${name} ${units_as_system} INTERFACE
target_include_directories(mp-units-${name} ${unitsAsSystem} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

View File

@@ -39,7 +39,7 @@ target_compile_features(mp-units-core INTERFACE cxx_std_20)
target_link_libraries(mp-units-core INTERFACE
gsl-lite::gsl-lite
)
target_include_directories(mp-units-core ${units_as_system} INTERFACE
target_include_directories(mp-units-core ${unitsAsSystem} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)