Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
82ad173c
Commit
82ad173c
authored
14 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
On 2nd thoughts, move STATIC vs SHARED on WIN32 stuff locally
parent
880d795a
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+0
-18
0 additions, 18 deletions
CMakeLists.txt
libcorpus2/CMakeLists.txt
+10
-1
10 additions, 1 deletion
libcorpus2/CMakeLists.txt
libpwrutils/CMakeLists.txt
+10
-1
10 additions, 1 deletion
libpwrutils/CMakeLists.txt
with
20 additions
and
20 deletions
CMakeLists.txt
+
0
−
18
View file @
82ad173c
...
...
@@ -53,24 +53,6 @@ FIND_PATH(LIBCORPUS2_SRC_DATA_DIR
)
MARK_AS_ADVANCED
(
LIBCORPUS2_SRC_DATA_DIR
)
# For DLLs on Windows (aka SHARED libraries) you have to explicitly
# specify the external API of the library. Nothing is exported
# by default.
# For UNIX on the other hand everything is exported by default.
# We were building libraries SHARED but without specyfing
# external API. It worked on UNIX but not on Windows.
# This is changed now so add_library entries do not specify library
# type and therefore use default. Below, the default is set
# to build SHARED libs on anything but WIN32, so for Windows/cygwin
# we are building STATIC (todo: is cygwin ok w/o externs?)
# To make DLLs on Windows, exports have to be defined and then
# add_library entry changed to state SHARED for given library.
# Once this is done for all libraries, and all are marked
# explicitly as SHARED, the below will won't make a difference.
if
(
NOT WIN32
)
set
(
BUILD_SHARED_LIBS TRUE
)
endif
(
NOT WIN32
)
add_subdirectory
(
libpwrutils
)
add_subdirectory
(
libcorpus2
)
add_subdirectory
(
tagset-tool
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/CMakeLists.txt
+
10
−
1
View file @
82ad173c
...
...
@@ -68,7 +68,16 @@ SET(libcorpus2_STAT_SRC
file
(
GLOB_RECURSE INCS
"*.h"
)
add_library
(
corpus2
${
libcorpus2_STAT_SRC
}
${
INCS
}
)
if
(
WIN32
)
# For DLLs on Windows (aka SHARED libraries) you have to explicitly
# specify the external API of the library. Nothing is exported
# by default.
# For UNIX on the other hand everything is exported by default.
# Until external API is specified explicitly, build STATIC for WIN32
add_library
(
corpus2 STATIC
${
libcorpus2_STAT_SRC
}
${
INCS
}
)
else
(
WIN32
)
add_library
(
corpus2 SHARED
${
libcorpus2_STAT_SRC
}
${
INCS
}
)
endif
(
WIN32
)
target_link_libraries
(
corpus2
${
LIBS
}
)
set_target_properties
(
corpus2 PROPERTIES
VERSION
"
${
corpus2_ver_major
}
.
${
corpus2_ver_minor
}
"
...
...
This diff is collapsed.
Click to expand it.
libpwrutils/CMakeLists.txt
+
10
−
1
View file @
82ad173c
...
...
@@ -34,7 +34,16 @@ SET(libpwrutils_STAT_SRC
file
(
GLOB_RECURSE INCS
"*.h"
)
add_library
(
pwrutils
${
libpwrutils_STAT_SRC
}
${
INCS
}
)
if
(
WIN32
)
# For DLLs on Windows (aka SHARED libraries) you have to explicitly
# specify the external API of the library. Nothing is exported
# by default.
# For UNIX on the other hand everything is exported by default.
# Until external API is specified explicitly, build STATIC for WIN32
add_library
(
pwrutils STATIC
${
libpwrutils_STAT_SRC
}
${
INCS
}
)
else
(
WIN32
)
add_library
(
pwrutils SHARED
${
libpwrutils_STAT_SRC
}
${
INCS
}
)
endif
(
WIN32
)
target_link_libraries
(
pwrutils
${
LIBS
}
)
set_target_properties
(
pwrutils PROPERTIES
VERSION
"
${
pwrutils_ver_major
}
.
${
pwrutils_ver_minor
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment