Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
b177c67b
Commit
b177c67b
authored
Dec 10, 2009
by
Emmanuel Christophe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: find libintl for windows and mac platforms
parent
3fd972bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
CMakeLists.txt
+6
-2
Code/Common/CMakeLists.txt
Code/Common/CMakeLists.txt
+3
-0
No files found.
CMakeLists.txt
View file @
b177c67b
...
...
@@ -617,12 +617,16 @@ IF(GETTEXT_FOUND)
FIND_PATH
(
GETTEXT_INCLUDE_DIR
libintl.h
DOC
"Path to gettext include directory (where libintl.h can be found)"
)
FIND_LIBRARY
(
GETTEXT_LIBRARY gettextlib
DOC
"GetText library"
)
MARK_AS_ADVANCED
(
GETTEXT_INCLUDE_DIR
)
IF
(
GETTEXT_INCLUDE_DIR
)
INCLUDE_DIRECTORIES
(
${
GETTEXT_INCLUDE_DIR
}
)
ENDIF
(
GETTEXT_INCLUDE_DIR
)
FIND_LIBRARY
(
GETTEXT_LIBRARY gettextlib DOC
"GetText library"
)
IF
(
APPLE OR WIN32
)
FIND_LIBRARY
(
GETTEXT_INTL_LIBRARY intl DOC
"GetText intl library"
)
ENDIF
(
APPLE OR WIN32
)
ELSE
(
GETTEXT_FOUND
)
SET
(
OTB_I18N 0
)
MESSAGE
(
STATUS
...
...
Code/Common/CMakeLists.txt
View file @
b177c67b
...
...
@@ -24,6 +24,9 @@ ENDIF(OTB_USE_PQXX)
IF
(
GETTEXT_FOUND
)
TARGET_LINK_LIBRARIES
(
OTBCommon
${
GETTEXT_LIBRARY
}
)
IF
(
APPLE OR WIN32
)
TARGET_LINK_LIBRARIES
(
OTBCommon
${
GETTEXT_INTL_LIBRARY
}
)
ENDIF
(
APPLE OR WIN32
)
ENDIF
(
GETTEXT_FOUND
)
IF
(
OTB_LIBRARY_PROPERTIES
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment