Skip to content

Commit 408b9fd

Browse files
committed
Add check to ensure GUI is normally build in the default location
1 parent 9c87bda commit 408b9fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ string(REPLACE "." "," GUI_VERSION_COMMA ${GUI_VERSION})
1414

1515
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
1616
set(CMAKE_OSX_SYSROOT "")
17+
if ((NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/Build ) AND (NOT OE_DONT_CHECK_BUILD_PATH))
18+
message(FATAL_ERROR "Please run cmake inside the Build folder to build the binaries in the predefined paths.\nSet the OE_DONT_CHECK_BUILD_PATH cmake variable to TRUE to disable this error")
19+
endif()
1720

1821
project(open-ephys-GUI)
1922
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")

0 commit comments

Comments
 (0)