Skip to content

Commit

Permalink
#63 Simplify and fix (normalized_path is not an environment variable)
Browse files Browse the repository at this point in the history
  • Loading branch information
PerMalmberg committed Aug 30, 2019
1 parent 389e13b commit b36968d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions smooth_component/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,19 @@ set(CMAKE_CXX_STANDARD 17)
include(${COMPONENT_DIR}/../lib/compiler_options.cmake)
include(${COMPONENT_DIR}/../lib/files.cmake)

set(normalized_path $ENV{normalized_path})
file(TO_CMAKE_PATH "${normalized_path}" normalized_path)
file(TO_CMAKE_PATH "$ENV{IDF_PATH}" normalized_path)

idf_component_register(SRCS ${SMOOTH_SOURCES}
INCLUDE_DIRS
${SMOOTH_LIB_ROOT}/smooth/include
$ENV{normalized_path}/components
${normalized_path}/components
REQUIRES
mbedtls
json
pthread
nvs_flash
fatfs
libsodium
)
)

set_compile_options(${COMPONENT_LIB})

0 comments on commit b36968d

Please sign in to comment.