Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
MariaDB
Commits
0ffc8523
Commit
0ffc8523
authored
Jan 24, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making the OS specific part more readable (indentation).
modified: storage/connect/CMakeLists.txt
parent
9ff78c61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+18
-18
No files found.
storage/connect/CMakeLists.txt
View file @
0ffc8523
...
...
@@ -38,25 +38,25 @@ add_definitions( -DHUGE_SUPPORT -DZIP_SUPPORT )
# OS specific C flags, definitions and source files.
#
IF
(
UNIX
)
if
(
WITH_WARNINGS
)
add_definitions
(
-Wall -Wfatal-errors -Wextra
)
message
(
STATUS
"CONNECT: GCC: All warnings enabled"
)
else
()
add_definitions
(
--no-warnings
)
message
(
STATUS
"CONNECT: GCC: All warnings disabled"
)
endif
(
)
add_definitions
(
-DUNIX -DLINUX -DUBUNTU
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fpermissive -fexceptions -fPIC "
)
get_property
(
inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
inihandl.c
)
SET
(
IPHLPAPI_LIBRARY
""
)
if
(
WITH_WARNINGS
)
add_definitions
(
-Wall -Wfatal-errors -Wextra
)
message
(
STATUS
"CONNECT: GCC: All warnings enabled"
)
else
()
add_definitions
(
--no-warnings
)
message
(
STATUS
"CONNECT: GCC: All warnings disabled"
)
endif
(
WITH_WARNINGS
)
add_definitions
(
-DUNIX -DLINUX -DUBUNTU
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fpermissive -fexceptions -fPIC "
)
get_property
(
inc_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
inihandl.c
)
SET
(
IPHLPAPI_LIBRARY
""
)
ELSE
(
!UNIX
)
# Windows (manually add exception handling to the CONNECT project
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabwmi.cpp tabmac.cpp macutil.cpp
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/EHsc"
)
SET
(
IPHLPAPI_LIBRARY iphlpapi.lib
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
tabwmi.cpp tabmac.cpp macutil.cpp
)
# Add exception handling to the CONNECT project
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/EHsc"
)
SET
(
IPHLPAPI_LIBRARY iphlpapi.lib
)
ENDIF
(
UNIX
)
...
...
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