Skip to content

Commit

Permalink
Fixed #424.
Browse files Browse the repository at this point in the history
Fixed cmake error when environment variable CXXFLAGS is not defined.
  • Loading branch information
redboltz committed Sep 12, 2019
1 parent 4452b9b commit 37806e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ ENDIF ()

#str to list
string(REPLACE " " ";" CHK_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE " " ";" CHK_ENV_CXXFLAGS $ENV{CXXFLAGS})
IF ($ENV{CXXFLAGS})
string(REPLACE " " ";" CHK_ENV_CXXFLAGS $ENV{CXXFLAGS})
ENDIF ()

FOREACH (HDR ${HDR_MQTT})
get_filename_component(HDR_WE ${HDR} NAME_WE)
Expand Down

0 comments on commit 37806e4

Please sign in to comment.