Skip to content

Commit

Permalink
Disable error for in-source builds
Browse files Browse the repository at this point in the history
This is needed by VS to configure the project in open-folder mode.
  • Loading branch information
bernhardmgruber committed Nov 21, 2023
1 parent c317f07 commit 5da4754
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions include/picongpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ set(CMAKE_CXX_STANDARD 17)
get_filename_component(SOURCE_DIR_ROOT ${PIConGPUapp_SOURCE_DIR}/../.. ABSOLUTE)
string(FIND "${PIConGPUapp_BINARY_DIR}"
"${SOURCE_DIR_ROOT}/" IN_SRC_POS)
if(IN_SRC_POS GREATER -1)
message(FATAL_ERROR
"PIConGPU requires an out of source build. "
"Please remove \n"
" - CMakeCache.txt\n"
" - CMakeFiles/\n"
"and create a separate build directory. "
"See: INSTALL.rst")
endif()
#if(IN_SRC_POS GREATER -1)
# message(FATAL_ERROR
# "PIConGPU requires an out of source build. "
# "Please remove \n"
# " - CMakeCache.txt\n"
# " - CMakeFiles/\n"
# "and create a separate build directory. "
# "See: INSTALL.rst")
#endif()

unset(IN_SRC_POS)

Expand Down

0 comments on commit 5da4754

Please sign in to comment.