2010-12-15 11:01:45 -05:00
|
|
|
$OpenBSD: patch-CMakeLists_txt,v 1.3 2010/12/15 16:01:45 ajacoutot Exp $
|
|
|
|
--- CMakeLists.txt.orig Sun Dec 5 17:31:01 2010
|
|
|
|
+++ CMakeLists.txt Wed Dec 15 16:37:26 2010
|
|
|
|
@@ -33,8 +33,8 @@ ENDIF()
|
2010-06-09 04:04:28 -04:00
|
|
|
|
2009-03-13 14:39:09 -04:00
|
|
|
|
|
|
|
IF(UNIX AND NOT WIN32)
|
2010-12-15 11:01:45 -05:00
|
|
|
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter") # additional C compile flags
|
|
|
|
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") # additional CPP compile flags
|
|
|
|
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unused-parameter") # additional C compile flags
|
|
|
|
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # additional CPP compile flags
|
2009-03-13 14:39:09 -04:00
|
|
|
ELSE()
|
2010-12-15 11:01:45 -05:00
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexceptions -fident -mthreads")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wsign-promo -fexceptions -fident -mthreads")
|
|
|
|
@@ -150,12 +150,12 @@ IF (BUILD_STATIC_PLUGINS)
|
2010-06-09 04:04:28 -04:00
|
|
|
## Library for loading FITS image files
|
|
|
|
FIND_PATH(CFITSIO_INCLUDE_DIR fitsio.h
|
|
|
|
/usr/include
|
|
|
|
- /usr/local/include
|
|
|
|
+ ${LOCALBASE}/include
|
|
|
|
DOC "Should point to the directory where the include files for libcfitsio are installed")
|
|
|
|
FIND_LIBRARY(CFITSIO_LIBRARIES cfitsio
|
|
|
|
PATHS
|
|
|
|
/usr/lib/
|
|
|
|
- /usr/local/lib
|
|
|
|
+ ${LOCALBASE}/lib
|
|
|
|
/opt/local/lib
|
|
|
|
DOC "cfitsio link options")
|
|
|
|
SET(QT_USE_QTXML TRUE) # For VirGO we also need QtXml module
|
2010-12-15 11:01:45 -05:00
|
|
|
@@ -194,12 +194,12 @@ IF(ENABLE_NLS)
|
2010-06-09 04:04:28 -04:00
|
|
|
PATHS
|
|
|
|
/usr/include
|
|
|
|
/sw/include
|
|
|
|
- /usr/local/include)
|
|
|
|
+ ${LOCALBASE}/include)
|
|
|
|
FIND_LIBRARY(INTL_LIBRARIES intl c
|
|
|
|
PATHS
|
|
|
|
/usr/lib/
|
|
|
|
/sw/lib
|
|
|
|
- /usr/local/lib) # NO_DEFAULT_PATH
|
|
|
|
+ ${LOCALBASE}/lib) # NO_DEFAULT_PATH
|
|
|
|
FIND_PACKAGE(Gettext REQUIRED)
|
|
|
|
FIND_PACKAGE(XGettext REQUIRED)
|
|
|
|
ENDIF()
|