X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2FCMakeLists.txt;fp=src%2FCMakeLists.txt;h=cf630bab27d72226e56f2579c5a0060c690ad6d6;hp=17b36173621bd9337b03e07a56f468d598ac208b;hb=7828006e4d0fd4fd72b77151045aaa61c053ffc3;hpb=9c0949fff4d2e6dfdf6701fc481b46a337a051d8 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 17b3617..cf630ba 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,7 @@ # Includes include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} - ) + ${CMAKE_CURRENT_SOURCE_DIR} +) # Version information set(SNAPSHOT_VERSION "unknown") @@ -9,7 +9,7 @@ execute_process(COMMAND git describe OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT RESULT_VARIABLE GIT_DESCRIBE_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE - ) +) if(${GIT_DESCRIBE_RESULT} STREQUAL 0) set(SNAPSHOT_VERSION ${GIT_DESCRIBE_OUTPUT}) endif () @@ -36,7 +36,7 @@ install ( TARGETS ftdi1 RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} - ) +) if ( STATICLIBS ) add_library(ftdi1-static STATIC ${c_sources}) @@ -46,10 +46,10 @@ if ( STATICLIBS ) install ( TARGETS ftdi1-static ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT staticlibs - ) + ) endif () install ( FILES ${c_headers} DESTINATION include/${PROJECT_NAME} COMPONENT headers - ) +)