Browse Source

* Fixed include directories in cmake

master
bergmann 4 years ago
parent
commit
6ca7bd6a9e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/CMakeLists.txt

+ 3
- 1
src/CMakeLists.txt View File

@@ -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 ####################################################################################


Loading…
Cancel
Save