Procházet zdrojové kódy

Further discouragement of in-source builds

iss7
Trevor Irons před 5 roky
rodič
revize
c77fa33f23
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      CMakeLists.txt

+ 4
- 0
CMakeLists.txt Zobrazit soubor

1
 cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
1
 cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
2
 
2
 
3
+# add this options before PROJECT keyword
4
+set(CMAKE_DISABLE_SOURCE_CHANGES ON)
5
+set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
6
+
3
 # Bug in CMake on Linux, but Linux, Mac, and Win all support shared libraries, no harm in this, 
7
 # Bug in CMake on Linux, but Linux, Mac, and Win all support shared libraries, no harm in this, 
4
 # but remove when warning no longer shows.
8
 # but remove when warning no longer shows.
5
 # Related to calling find_package before a project is created... 
9
 # Related to calling find_package before a project is created... 

Načítá se…
Zrušit
Uložit