mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Added the ability to override the install path for the Findserial.cmake file.
This commit is contained in:
parent
dbb6dcca50
commit
3fb3b06484
@ -47,7 +47,11 @@ INSTALL(TARGETS serial
|
||||
|
||||
INSTALL(FILES include/serial.h DESTINATION include)
|
||||
|
||||
INSTALL(FILES Findserial.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
|
||||
IF(NOT DEFINED(CMAKE_FIND_INSTALL_PATH))
|
||||
set(CMAKE_FIND_INSTALL_PATH ${CMAKE_ROOT})
|
||||
ENDIF(NOT DEFINED(CMAKE_FIND_INSTALL_PATH))
|
||||
|
||||
INSTALL(FILES Findserial.cmake DESTINATION ${CMAKE_FIND_INSTALL_PATH}/Modules/)
|
||||
|
||||
ADD_CUSTOM_TARGET (uninstall @echo uninstall package)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user