Commit d2f95d9a authored by Rashad Kanavath's avatar Rashad Kanavath

SuperBuild: setting SB_GLFW_LIBRARY breaks build. better not fixup on that

parent a81ff69f
......@@ -2,7 +2,3 @@ find_package(GLFW REQUIRED)
mark_as_advanced(GLFW_INCLUDE_DIR)
mark_as_advanced(GLFW_LIBRARY)
if(NOT GLFW_FOUND)
message(FATAL_ERROR "Cannot find GLFW. Set GLFW_INCLUDE_DIR and GLFW_LIBRARY")
endif()
......@@ -16,10 +16,3 @@ ExternalProject_Add(GLFW
-DGLFW_BUILD_TESTS:BOOL=OFF
CMAKE_COMMAND ${SB_CMAKE_COMMAND}
)
set(_SB_GLFW_INCLUDE_DIR ${SB_INSTALL_PREFIX}/include)
if(WIN32)
set(_SB_GLFW_LIBRARY ${SB_INSTALL_PREFIX}/lib/libglfw.lib)
elseif(UNIX)
set(_SB_GLFW_LIBRARY ${SB_INSTALL_PREFIX}/lib/libglfw${CMAKE_SHARED_LIBRARY_SUFFIX})
endif()
......@@ -87,8 +87,9 @@ endif()
if(OTB_USE_GLFW)
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(OTB GLFW)
ADD_SUPERBUILD_CMAKE_VAR(OTB GLFW_INCLUDE_DIR)
ADD_SUPERBUILD_CMAKE_VAR(OTB GLFW_LIBRARY)
#check with RK before enabling it again (clean up to be done)
# ADD_SUPERBUILD_CMAKE_VAR(OTB GLFW_INCLUDE_DIR)
# ADD_SUPERBUILD_CMAKE_VAR(OTB GLFW_LIBRARY)
endif()
if(OTB_USE_GLUT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment