[CMake] find_program usage

vinay kumar Kotegowder vinay.kotegowder at gmail.com
Tue Jun 4 09:37:58 EDT 2019


Hi Everyone,

This is simple code running on Windows machine:

if(WIN32)
  message(STATUS "On windows")
  find_program(_TOOL
              arm-none-eabi-gcc.exe
              PATHS "C:"
            )
endif()

message(STATUS "${_TOOL}")

Result after executing: cmake -P mycmake.cmake

-- On windows
-- _TOOL-NOTFOUND

Can anyone tell me what is wrong with the usage of "find_program"  ?

Vinay
Senior Engineer


More information about the CMake mailing list