Explorar el Código

* Fixed include directories in cmake

master
bergmann hace 4 años
padre
commit
6ca7bd6a9e
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/CMakeLists.txt

+ 3
- 1
src/CMakeLists.txt Ver fichero

@@ -20,7 +20,7 @@ Option ( CPPLOGGING_NO_STRIP
"Do not strip debug symbols from binary."
OFF )

Find_Package ( nlohmann_json )
Find_Package ( nlohmann_json QUIET )
If ( nlohmann_json_FOUND )
Set ( CPPLOGGING_HAS_NLOHMANN_JSON true )
EndIf ( )
@@ -61,6 +61,7 @@ Set_Target_Properties ( cpplogging-static
Target_Include_Directories ( cpplogging-static
PUBLIC
$<BUILD_INTERFACE:${CPPLOGGING_INCLUDE_DIR}>
$<BUILD_INTERFACE:${CPPLOGGING_GENERATED_INCLUDE_DIR}>
$<INSTALL_INTERFACE:${CPPLOGGING_INSTALL_DIR_INCLUDE}> )

# Shared Library ##################################################################################
@@ -74,6 +75,7 @@ Set_Target_Properties ( cpplogging-shared
Target_Include_Directories ( cpplogging-shared
PUBLIC
$<BUILD_INTERFACE:${CPPLOGGING_INCLUDE_DIR}>
$<BUILD_INTERFACE:${CPPLOGGING_GENERATED_INCLUDE_DIR}>
$<INSTALL_INTERFACE:${CPPLOGGING_INSTALL_DIR_INCLUDE}> )

# Optimization ####################################################################################


Cargando…
Cancelar
Guardar