Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions ubloxcfg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ endif()

# DEPENDENCIES =========================================================================================================

find_package(Perl REQUIRED)

execute_process(COMMAND ${PERL_EXECUTABLE} -e "use Path::Tiny" RESULT_VARIABLE HAVE_PERL_PATH_TINY ERROR_QUIET)
if(NOT HAVE_PERL_PATH_TINY EQUAL 0)
message(FATAL_ERROR "Perl module Path::Tiny is required but not found")
endif()
execute_process(COMMAND ${PERL_EXECUTABLE} -e "use Data::Float" RESULT_VARIABLE HAVE_PERL_DATA_FLOAT ERROR_QUIET)
if(NOT HAVE_PERL_DATA_FLOAT EQUAL 0)
message(FATAL_ERROR "Perl module Data::Float is required but not found")
if(NOT NO_CODEGEN)
find_package(Perl REQUIRED)

execute_process(COMMAND ${PERL_EXECUTABLE} -e "use Path::Tiny" RESULT_VARIABLE HAVE_PERL_PATH_TINY ERROR_QUIET)
if(NOT HAVE_PERL_PATH_TINY EQUAL 0)
message(FATAL_ERROR "Perl module Path::Tiny is required but not found")
endif()
execute_process(COMMAND ${PERL_EXECUTABLE} -e "use Data::Float" RESULT_VARIABLE HAVE_PERL_DATA_FLOAT ERROR_QUIET)
if(NOT HAVE_PERL_DATA_FLOAT EQUAL 0)
message(FATAL_ERROR "Perl module Data::Float is required but not found")
endif()
endif()


Expand Down
Loading