Changeset 3180


Ignore:
Timestamp:
09/23/10 05:14:49 (10 years ago)
Author:
rorothetroll
Message:

fix a small issue with cmake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r3036 r3180  
    104104
    105105if (OSCamOperatingSystem MATCHES "Windows/Cygwin")
    106 include_directories (
    107     ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
    108     ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
    109     if[CS_WITH_GBOX]
     106if(CS_WITH_GBOX)
     107    include_directories (
     108        ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
     109        ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
    110110        ${CMAKE_CURRENT_SOURCE_DIR}/csgbox
    111     endif[CS_WITH_GBOX]
    112111        ${CMAKE_CURRENT_SOURCE_DIR}/cygwin
    113112        /usr/include/w32api
    114     ${OPTIONAL_INCLUDE_DIR}
     113        ${OPTIONAL_INCLUDE_DIR}
    115114    )
     115else(CS_WITH_GBOX)
     116    include_directories (
     117        ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
     118        ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
     119        ${CMAKE_CURRENT_SOURCE_DIR}/csgbox
     120        ${CMAKE_CURRENT_SOURCE_DIR}/cygwin
     121        /usr/include/w32api
     122        ${OPTIONAL_INCLUDE_DIR}
     123    )
     124endif(CS_WITH_GBOX)
    116125else (OSCamOperatingSystem MATCHES "Windows/Cygwin")
    117 include_directories (
    118     ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
    119     ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
    120     if[CS_WITH_GBOX]
     126if(CS_WITH_GBOX)
     127    include_directories (
     128        ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
     129        ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
    121130        ${CMAKE_CURRENT_SOURCE_DIR}/csgbox
    122     endif[CS_WITH_GBOX]
    123     ${OPTIONAL_INCLUDE_DIR}
    124     )
     131        ${OPTIONAL_INCLUDE_DIR}
     132        )
     133else(CS_WITH_GBOX)
     134    include_directories (
     135        ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
     136        ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
     137        ${OPTIONAL_INCLUDE_DIR}
     138        )
     139endif(CS_WITH_GBOX)
    125140endif (OSCamOperatingSystem MATCHES "Windows/Cygwin")
    126141
Note: See TracChangeset for help on using the changeset viewer.