https://github.com/penn-graphics-research/ziran2019
Tip revision: 8d3d27cd17bbceab18c317820dbe595178f6312a authored by fangy14 on 06 November 2019, 07:20:57 UTC
open source
open source
Tip revision: 8d3d27c
nanogui.patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b209730..4fa1220 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,9 +8,9 @@ if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/glfw/src")
"by calling \"git submodule update --init --recursive\"")
endif()
-option(NANOGUI_BUILD_EXAMPLE "Build NanoGUI example application?" ON)
+option(NANOGUI_BUILD_EXAMPLE "Build NanoGUI example application?" OFF)
option(NANOGUI_BUILD_SHARED "Build NanoGUI as a shared library?" ON)
-option(NANOGUI_BUILD_PYTHON "Build a Python plugin for NanoGUI?" ON)
+option(NANOGUI_BUILD_PYTHON "Build a Python plugin for NanoGUI?" OFF)
set(NANOGUI_PYTHON_VERSION "" CACHE STRING "Python version to use for compiling the Python plugin")
# Required libraries for linking against nanogui (all targets)
@@ -220,10 +220,10 @@ endif()
if (NANOGUI_BUILD_SHARED AND NOT ${U_CMAKE_BUILD_TYPE} MATCHES DEBUG)
if (APPLE)
# Strip .dylib library on OSX
- add_custom_command(TARGET nanogui POST_BUILD COMMAND strip -u -r ${CMAKE_CURRENT_BINARY_DIR}/libnanogui.dylib)
+ add_custom_command(TARGET nanogui POST_BUILD COMMAND strip -u -r $<TARGET_FILE:nanogui>)
elseif(UNIX)
# Strip .so library on Linux
- add_custom_command(TARGET nanogui POST_BUILD COMMAND strip ${CMAKE_CURRENT_BINARY_DIR}/libnanogui.so)
+ add_custom_command(TARGET nanogui POST_BUILD COMMAND strip $<TARGET_FILE:nanogui>)
endif()
endif()