Skip to content

Commit

Permalink
bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Chen committed May 8, 2013
1 parent 1544a2a commit 0615f48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ endif(UNIX)


if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set( CMAKE_C_FLAGS "-Wall -Werror -O4 -fvisibility=hidden " )
set( CMAKE_C_FLAGS "-Wall -O4 -fvisibility=hidden " )
endif ()

source_group("Headers Private" FILES ${HDR_PRIVATE})
Expand Down Expand Up @@ -353,13 +353,13 @@ endif(WIN32)

# Set the so version of the lib.
# Equivalent to LDFLAGS=-version-info x:x:x
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
foreach(lib websockets websockets_shared)
set_target_properties(${lib}
PROPERTIES
SOVERSION ${SOVERSION})
endforeach()
endif()
# if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
# foreach(lib websockets websockets_shared)
# set_target_properties(${lib}
# PROPERTIES
# SOVERSION ${SOVERSION})
# endforeach()
# endif()

set(LIB_LIST)

Expand Down Expand Up @@ -407,7 +407,7 @@ if (NOT WITHOUT_EXTENSIONS)
endif()

# Make sure ZLib is compiled before the libs.
foreach (lib websockets websockets_shared)
foreach (lib websockets)
add_dependencies(${lib} ZLIB)
endforeach()

Expand Down
3 changes: 1 addition & 2 deletions ios/build_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ def build_opencv(srcroot, buildroot, target, arch):
# for some reason, if you do not specify CMAKE_BUILD_TYPE, it puts libs to "RELEASE" rather than "Release"
cmakeargs = ("-GXcode " +
"-DCMAKE_TOOLCHAIN_FILE=%s/ios/cmake/Toolchains/Toolchain-%s_Xcode.cmake " +
"-DWITH_SSL=0" +
"-DWITH_SSL=0 " +
"-DWITHOUT_SERVER=1 " +
"-DWITHOUT_TESTAPPS=1 " +
"-DWITHOUT_EXTENSIONS=1 " +
"-DCMAKE_INSTALL_PREFIX:PATH=/Users/james/Project/libwebsockets/install") % (srcroot, target)
# if cmake cache exists, just rerun cmake to update OpenCV.xproj if necessary
if os.path.isfile(os.path.join(builddir, "CMakeCache.txt")):
Expand Down

0 comments on commit 0615f48

Please sign in to comment.