Skip to content

Instantly share code, notes, and snippets.

@wuhao5
Created August 6, 2014 07:24
Show Gist options
  • Save wuhao5/6dfd5074c037da53b235 to your computer and use it in GitHub Desktop.
Save wuhao5/6dfd5074c037da53b235 to your computer and use it in GitHub Desktop.
wxLua cmake config for Clang and C++11
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER=`xcrun -f clang` -DCMAKE_CXX_COMPILER=`xcrun -f clang++` -DwxWidgets_CONFIG_EXECUTABLE=../../../wxWidgets/install/bin/wx-config -DwxWidgets_COMPONENTS="stc;html;aui;adv;core;net;base" -DwxLuaBind_COMPONENTS="stc;html;aui;adv;core;net;base" -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE -DwxLua_LUA_LIBRARY_VERSION=5.2 -DBUILD_USE_PRECOMPILED_HEADERS=FALSE -DCMAKE_CXX_FLAGS='-std=c++11 -stdlib=libc++ -Wno-c++11-narrowing' -DwxLua_LUA_LIBRARY_USE_BUILTIN=TRUE -DwxLua_LUA_LIBRARY_BUILD_SHARED=TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment