We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fdb4dd commit 0d821c9Copy full SHA for 0d821c9
1 file changed
CMakeLists.txt
@@ -1,5 +1,14 @@
1
cmake_minimum_required(VERSION 3.16)
2
3
+#---------------------------------------------------------------------------------------------
4
+# First, ensure no in-source build occurs.
5
6
+if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
7
+ message(FATAL_ERROR
8
+ "In-source builds are not allowed for wolfIP.\
9
+ Run cmake from a separate directory from where CMakeLists.txt lives.")
10
+endif()
11
+
12
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
13
14
set(CMAKE_C_FLAGS "-Wall -Werror -Wextra -Wdeclaration-after-statement")
0 commit comments