Skip to content

Commit

Permalink
CMakeLists.txt: get {euslisp,jskeus}_VERSION from dpkg-query
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jan 10, 2025
1 parent 5659866 commit 58af9bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roseus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ if(APPLE)
elseif((NOT ${euslisp_FOUND}) AND (NOT ${jskeus_FOUND}) AND (EXISTS ${EUS_EXECUTABLE}) AND (EXISTS ${JSKEUS_EXECUTABLE}) AND (EXISTS /usr/share/euslisp/include))
set(euslisp_PACKAGE_PATH /usr/share/euslisp)
set(euslisp_INCLUDE_DIRS /usr/share/euslisp/include)
message("-- Set euslisp_PACKAGE_PATH to ${euslisp_PACKAGE_PATH}, this might be system installed euslisp")
execute_process(COMMAND dpkg-query -W -f='\${Version}' euslisp
OUTPUT_VARIABLE euslisp_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "'" "" euslisp_VERSION "${euslisp_VERSION}")
execute_process(COMMAND dpkg-query -W -f='\${Version}' jskeus
OUTPUT_VARIABLE jskeus_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "'" "" jskeus_VERSION "${jskeus_VERSION}")
else()
find_package(euslisp REQUIRED)
find_package(jskeus REQUIRED)
Expand Down

0 comments on commit 58af9bb

Please sign in to comment.