Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
1632c9a8
Commit
1632c9a8
authored
10 years ago
by
Joakim Söderberg
Committed by
Andy Green
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CLang gives an error on -O4
clang: error: -O4 is equivalent to -O3
parent
3476e0ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+4
-8
4 additions, 8 deletions
CMakeLists.txt
with
4 additions
and
8 deletions
CMakeLists.txt
+
4
−
8
View file @
1632c9a8
...
@@ -361,9 +361,9 @@ endif(UNIX)
...
@@ -361,9 +361,9 @@ endif(UNIX)
if
(
CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX
)
if
(
UNIX
)
if
(
UNIX
)
set
(
CMAKE_C_FLAGS
"-Wall -Werror -O
4
-fvisibility=hidden
${
CMAKE_C_FLAGS
}
"
)
set
(
CMAKE_C_FLAGS
"-Wall -Werror -O
3
-fvisibility=hidden
${
CMAKE_C_FLAGS
}
"
)
else
(
UNIX
)
else
(
UNIX
)
set
(
CMAKE_C_FLAGS
"-Wall -O
4
-fvisibility=hidden
${
CMAKE_C_FLAGS
}
"
)
set
(
CMAKE_C_FLAGS
"-Wall -O
3
-fvisibility=hidden
${
CMAKE_C_FLAGS
}
"
)
endif
(
UNIX
)
endif
(
UNIX
)
endif
()
endif
()
...
@@ -685,9 +685,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
...
@@ -685,9 +685,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
add_custom_command
(
TARGET test-server
add_custom_command
(
TARGET test-server
POST_BUILD
POST_BUILD
COMMAND
"
${
CMAKE_COMMAND
}
"
-E make_directory
"$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server"
COMMAND
"
${
CMAKE_COMMAND
}
"
-E make_directory
"$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server"
)
COMMENT
"Creating test-server $<TARGET_FILE_DIR:test-server> share directory"
VERBATIM
)
# Copy the file needed to run the server so that the test apps can
# Copy the file needed to run the server so that the test apps can
# reach them from their default output location
# reach them from their default output location
...
@@ -695,9 +693,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
...
@@ -695,9 +693,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
if
(
EXISTS
${
TEST_FILE
}
)
if
(
EXISTS
${
TEST_FILE
}
)
add_custom_command
(
TARGET test-server
add_custom_command
(
TARGET test-server
POST_BUILD
POST_BUILD
COMMAND
"
${
CMAKE_COMMAND
}
"
-E copy
"
${
TEST_FILE
}
"
"$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server"
COMMAND
"
${
CMAKE_COMMAND
}
"
-E copy
"
${
TEST_FILE
}
"
"$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server"
VERBATIM
)
COMMENT
"Copying test-server files"
VERBATIM
)
endif
()
endif
()
endforeach
()
endforeach
()
endif
(
NOT LWS_WITHOUT_SERVER
)
endif
(
NOT LWS_WITHOUT_SERVER
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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