Skip to content

Commit 6b20d83

Browse files
committed
CMake: Move project() to top of CMakeLists.txt
Also remove `NOTICE` from message() about PCHs - it seems to print this in the actual message, contrary to the documentation where it is used as a severity.
1 parent f5add0b commit 6b20d83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3232
# POSSIBILITY OF SUCH DAMAGE.
3333

34+
project(glslang
35+
LANGUAGES CXX)
36+
3437
# increase to 3.1 once all major distributions
3538
# include a version of CMake >= 3.1
3639
cmake_minimum_required(VERSION 2.8.12)
@@ -115,8 +118,6 @@ if(USE_CCACHE)
115118
endif(CCACHE_FOUND)
116119
endif()
117120

118-
project(glslang)
119-
120121
if(ENABLE_CTEST)
121122
include(CTest)
122123
endif()
@@ -303,7 +304,7 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.16")
303304
else()
304305
function(glslang_pch target pch)
305306
endfunction()
306-
message(NOTICE "Your CMake version is ${CMAKE_VERSION}. Update to at least 3.16 to enable precompiled headers to speed up incremental builds")
307+
message("Your CMake version is ${CMAKE_VERSION}. Update to at least 3.16 to enable precompiled headers to speed up incremental builds")
307308
endif()
308309

309310
if(BUILD_EXTERNAL AND IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/External)

0 commit comments

Comments
 (0)