Skip to content

Commit

Permalink
Fix software build path for MSVC & MACOS. openMVG#291
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed May 12, 2015
1 parent 31ae2cc commit 84d6ad4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/software/SfM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ INSTALL(TARGETS openMVG_main_evalQuality DESTINATION bin/)
# Export tutorial with valid path thanks to a configuration file
##
SET(OPENMVG_SOFTWARE_SFM_SRC_DIR ${CMAKE_CURRENT_LIST_DIR})
SET(OPENMVG_SOFTWARE_SFM_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
IF(MSVC OR APPLE)
SET(OPENMVG_SOFTWARE_SFM_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
ELSE()
SET(OPENMVG_SOFTWARE_SFM_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
ENDIF()
SET(OPENMVG_TUTORIAL_IN_FILE "${CMAKE_CURRENT_LIST_DIR}/tutorial_demo.py.in")
CONFIGURE_FILE(${OPENMVG_TUTORIAL_IN_FILE}
"${CMAKE_CURRENT_BINARY_DIR}/tutorial_demo.py" @ONLY)
Expand Down

0 comments on commit 84d6ad4

Please sign in to comment.