gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Allow CPACK configuration on all platforms
0 1 0
default
1 file changed with 1 insertions and 1 deletions:
↑ Collapse diff ↑
Ignore white space 32 line context
... ...
@@ -133,33 +133,33 @@
133 133
  ${PROJECT_SOURCE_DIR}/cmake/LEMONConfig.cmake.in
134 134
  ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
135 135
  @ONLY
136 136
)
137 137
IF(UNIX)
138 138
  INSTALL(
139 139
    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
140 140
    DESTINATION share/lemon/cmake
141 141
  )
142 142
ELSEIF(WIN32)
143 143
  INSTALL(
144 144
    FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake
145 145
    DESTINATION cmake
146 146
  )
147 147
ENDIF()
148 148

	
149
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR} AND WIN32)
149
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
150 150
  SET(CPACK_PACKAGE_NAME ${PROJECT_NAME})
151 151
  SET(CPACK_PACKAGE_VENDOR "EGRES")
152 152
  SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
153 153
    "LEMON - Library for Efficient Modeling and Optimization in Networks")
154 154
  SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
155 155

	
156 156
  SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
157 157

	
158 158
  SET(CPACK_PACKAGE_INSTALL_DIRECTORY
159 159
    "${PROJECT_NAME} ${PROJECT_VERSION}")
160 160
  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
161 161
    "${PROJECT_NAME} ${PROJECT_VERSION}")
162 162

	
163 163
  SET(CPACK_COMPONENTS_ALL headers library html_documentation bin)
164 164

	
165 165
  SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers")
0 comments (0 inline)