Skip to content

Commit

Permalink
CMakeLists.txt: Check against CMAKE_SYSTEM_NAME
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
  • Loading branch information
nekromant committed Oct 4, 2016
1 parent 5794888 commit 156c3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ install(TARGETS st-flash st-info
RUNTIME DESTINATION bin
)

if (LINUX)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
file(GLOB RULES_FILES etc/udev/rules.d/*.rules)
install(FILES etc/modprobe.d/stlink_v1.conf
DESTINATION /etc)
Expand Down

0 comments on commit 156c3ca

Please sign in to comment.