diff options
author | Brad King <brad.king@kitware.com> | 2012-08-14 12:31:45 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-08-14 12:31:45 (GMT) |
commit | cd3bd23266a4a6c00595134a17a8bdaea9e28af5 (patch) | |
tree | 515fcf4fdee211067497339acb52de321640c4fc /Modules/FindRTI.cmake | |
parent | 9acb4f118cd9a52aaa66897b1c0cd11dace3851c (diff) | |
parent | 68bc863d5bd64f3e893722e403d4fd56bd2e175a (diff) | |
download | CMake-cd3bd23266a4a6c00595134a17a8bdaea9e28af5.zip CMake-cd3bd23266a4a6c00595134a17a8bdaea9e28af5.tar.gz CMake-cd3bd23266a4a6c00595134a17a8bdaea9e28af5.tar.bz2 |
Merge topic 'cleanup-style'
68bc863 Merge branch 'master' into cleanup-style
a05eba5 CMakeVersion.bash: Update sed expression for lower-case 'set'
3c0488d Fix WarnUnusedUnusedViaUnset test pass/fail regex
6c2c483 Remove trailing TAB from NSIS.template.in
9db3116 Remove CMake-language block-end command arguments
77543bd Convert CMake-language commands to lower case
7bbaa42 Remove trailing whitespace from most CMake and C/C++ code
be9db98 Merge topic 'watcom-compiler-version'
af42ae4 Watcom: Simplify compiler version detection (#11866)
Diffstat (limited to 'Modules/FindRTI.cmake')
-rw-r--r-- | Modules/FindRTI.cmake | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/Modules/FindRTI.cmake b/Modules/FindRTI.cmake index 031c138..eef0dae 100644 --- a/Modules/FindRTI.cmake +++ b/Modules/FindRTI.cmake @@ -29,73 +29,73 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) -MACRO(RTI_MESSAGE_QUIETLY QUIET TYPE MSG) - IF(NOT ${QUIET}) - MESSAGE(${TYPE} "${MSG}") - ENDIF(NOT ${QUIET}) -ENDMACRO(RTI_MESSAGE_QUIETLY QUIET TYPE MSG) +macro(RTI_MESSAGE_QUIETLY QUIET TYPE MSG) + if(NOT ${QUIET}) + message(${TYPE} "${MSG}") + endif() +endmacro() # Detect the CERTI installation, http://www.cert.fr/CERTI -IF ("$ENV{CERTI_HOME}" STRGREATER "") - FILE(TO_CMAKE_PATH "$ENV{CERTI_HOME}" CERTI_HOME) +if ("$ENV{CERTI_HOME}" STRGREATER "") + file(TO_CMAKE_PATH "$ENV{CERTI_HOME}" CERTI_HOME) RTI_MESSAGE_QUIETLY(RTI_FIND_QUIETLY STATUS "Using environment defined CERTI_HOME: ${CERTI_HOME}") -ENDIF ("$ENV{CERTI_HOME}" STRGREATER "") +endif () -SET(RTI_DEFINITIONS "-DRTI_USES_STD_FSTREAM") +set(RTI_DEFINITIONS "-DRTI_USES_STD_FSTREAM") # Detect the MAK Technologies RTI installation, http://www.mak.com/products/rti.php # note: the following list is ordered to find the most recent version first -SET(RTI_POSSIBLE_DIRS +set(RTI_POSSIBLE_DIRS ${CERTI_HOME} "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MAK Technologies\\MAK RTI 3.2 MSVC++ 8.0;Location]" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MAK RTI 3.2-win32-msvc++8.0;InstallLocation]" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MAK Technologies\\MAK RTI 2.2;Location]" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MAK RTI 2.2;InstallLocation]") -SET(RTI_OLD_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") +set(RTI_OLD_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") # The MAK RTI has the "lib" prefix even on Windows. -SET(CMAKE_FIND_LIBRARY_PREFIXES "lib" "") +set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "") -FIND_LIBRARY(RTI_LIBRARY +find_library(RTI_LIBRARY NAMES RTI RTI-NG PATHS ${RTI_POSSIBLE_DIRS} PATH_SUFFIXES lib DOC "The RTI Library") -IF (RTI_LIBRARY) - SET(RTI_LIBRARIES ${RTI_LIBRARY}) +if (RTI_LIBRARY) + set(RTI_LIBRARIES ${RTI_LIBRARY}) RTI_MESSAGE_QUIETLY(RTI_FIND_QUIETLY STATUS "RTI library found: ${RTI_LIBRARY}") -ELSE (RTI_LIBRARY) +else () RTI_MESSAGE_QUIETLY(RTI_FIND_QUIETLY STATUS "RTI library NOT found") -ENDIF (RTI_LIBRARY) +endif () -FIND_LIBRARY(RTI_FEDTIME_LIBRARY +find_library(RTI_FEDTIME_LIBRARY NAMES FedTime PATHS ${RTI_POSSIBLE_DIRS} PATH_SUFFIXES lib DOC "The FedTime Library") -IF (RTI_FEDTIME_LIBRARY) - SET(RTI_LIBRARIES ${RTI_LIBRARIES} ${RTI_FEDTIME_LIBRARY}) +if (RTI_FEDTIME_LIBRARY) + set(RTI_LIBRARIES ${RTI_LIBRARIES} ${RTI_FEDTIME_LIBRARY}) RTI_MESSAGE_QUIETLY(RTI_FIND_QUIETLY STATUS "RTI FedTime found: ${RTI_FEDTIME_LIBRARY}") -ENDIF (RTI_FEDTIME_LIBRARY) +endif () -FIND_PATH(RTI_INCLUDE_DIR +find_path(RTI_INCLUDE_DIR NAMES RTI.hh PATHS ${RTI_POSSIBLE_DIRS} PATH_SUFFIXES include DOC "The RTI Include Files") -IF (RTI_INCLUDE_DIR) +if (RTI_INCLUDE_DIR) RTI_MESSAGE_QUIETLY(RTI_FIND_QUIETLY STATUS "RTI headers found: ${RTI_INCLUDE_DIR}") -ELSE (RTI_INCLUDE_DIR) +else () RTI_MESSAGE_QUIETLY(RTI_FIND_QUIETLY STATUS "RTI headers NOT found") -ENDIF (RTI_INCLUDE_DIR) +endif () # Set the modified system variables back to the original value. -SET(CMAKE_FIND_LIBRARY_PREFIXES "${RTI_OLD_FIND_LIBRARY_PREFIXES}") +set(CMAKE_FIND_LIBRARY_PREFIXES "${RTI_OLD_FIND_LIBRARY_PREFIXES}") -INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTI DEFAULT_MSG RTI_LIBRARY RTI_INCLUDE_DIR) |