[Greater-commits] r178 - trunk/GREAT-ER-DB/trunk/impl/postgresql
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 9 16:51:27 CEST 2011
Author: aheinecke
Date: 2011-06-09 16:51:27 +0200 (Thu, 09 Jun 2011)
New Revision: 178
Modified:
trunk/GREAT-ER-DB/trunk/impl/postgresql/CMakeLists.txt
Log:
- Correct installation location
- Treat compiler warning for use of uninitialized local variable as error
- ignore CRT security warnings
Modified: trunk/GREAT-ER-DB/trunk/impl/postgresql/CMakeLists.txt
===================================================================
--- trunk/GREAT-ER-DB/trunk/impl/postgresql/CMakeLists.txt 2011-06-09 14:35:28 UTC (rev 177)
+++ trunk/GREAT-ER-DB/trunk/impl/postgresql/CMakeLists.txt 2011-06-09 14:51:27 UTC (rev 178)
@@ -46,7 +46,12 @@
message(ERROR "Embedded psql precompiler not found!")
endif()
-include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${POSTGRESQL_INCLUDE_DIR})
+if (MSVC)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+ add_definitions(/we4700)
+endif()
+
+include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${POSTGRESQL_INCLUDE_DIR})
set(dagreater_pg_SRCS
dagreater_pg.c
gdagreater_pg.c
@@ -84,7 +89,6 @@
DEFINE_SYMBOL DAGREATER_PG_MAKEDLL
)
-install(TARGETS dagreater_pg DESTINATION ${CMAKE_INSTALL_PREFIX}
- LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
- ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
-
+install(TARGETS dagreater_pg ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
+ RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
More information about the Greater-commits
mailing list