mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
build: units_as_system
renamed to unitsAsSystem
This commit is contained in:
@@ -37,7 +37,7 @@ include(AddUnitsModule)
|
|||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
if(${projectPrefix}AS_SYSTEM_HEADERS)
|
if(${projectPrefix}AS_SYSTEM_HEADERS)
|
||||||
set(units_as_system SYSTEM)
|
set(unitsAsSystem SYSTEM)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(core)
|
add_subdirectory(core)
|
||||||
|
@@ -28,7 +28,7 @@ cmake_minimum_required(VERSION 3.15)
|
|||||||
function(add_units_module name)
|
function(add_units_module name)
|
||||||
add_library(mp-units-${name} INTERFACE)
|
add_library(mp-units-${name} INTERFACE)
|
||||||
target_link_libraries(mp-units-${name} INTERFACE ${ARGN})
|
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>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
)
|
)
|
||||||
|
@@ -39,7 +39,7 @@ target_compile_features(mp-units-core INTERFACE cxx_std_20)
|
|||||||
target_link_libraries(mp-units-core INTERFACE
|
target_link_libraries(mp-units-core INTERFACE
|
||||||
gsl-lite::gsl-lite
|
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>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user