From 2f1359a0f91ef216bc34fb5732ad7f9e4bfe3d52 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 31 Jan 2021 15:09:59 +0000 Subject: Fix march=native not being enabled * LINUX doesn't exist apparently, use UNIX instead + Add some platform-specific logic to determine whether to use mcpu or march - Remove duplicated compile option comments + Add STATUS level to messages --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 02c372a1f..0a3332caa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -210,7 +210,7 @@ function(make_symlink orig link) endif() # Create the symlink (platform-dependent): - message("Creating symlink, orig = ${orig}; link = ${link}") + message(STATUS "Creating symlink, orig = ${orig}; link = ${link}") if (CMAKE_HOST_UNIX) set(command ln -s ${orig} ${link}) else() @@ -254,7 +254,7 @@ set(symlinks monsters.ini README.txt ) -message("Creating output folder and symlinks...") +message(STATUS "Creating output folder and symlinks...") file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/Server") foreach (symlink ${symlinks}) make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/../Server/${symlink}" "${CMAKE_BINARY_DIR}/Server/${symlink}") -- cgit v1.2.3