Skip to content

Commit

Permalink
Check for INTERFACE library type in add_library function … (#1034)
Browse files Browse the repository at this point in the history
* Check for INTERFACE library type in add_library function defined in windows.cmake

* Change tabs to space in windows.cmake
  • Loading branch information
johnwason authored and dirk-thomas committed Oct 8, 2019
1 parent cd212d2 commit 0d245cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/platform/windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ if(BUILD_SHARED_LIBS)
# Check if its an external, imported library (e.g. boost libs via cmake module definition)
list(FIND ARGN "IMPORTED" FIND_IMPORTED)
list(FIND ARGN "ALIAS" FIND_ALIAS)
list(FIND ARGN "INTERFACE" FIND_INTERFACE)
_add_library(${ARGV0} ${ARGN})
if(${FIND_IMPORTED} EQUAL -1 AND ${FIND_ALIAS} EQUAL -1)
if(${FIND_IMPORTED} EQUAL -1 AND ${FIND_ALIAS} EQUAL -1 AND ${FIND_INTERFACE} EQUAL -1)
set_target_properties(${ARGV0}
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_BIN_DESTINATION}
Expand Down

0 comments on commit 0d245cb

Please sign in to comment.