fixup project settings (and clear cygwin warning about win32)

This commit is contained in:
Kelvin Sherlock 2017-07-27 11:34:25 -04:00
parent 359c97d531
commit 26b3f3b3ec

View File

@ -1,14 +1,15 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(afp VERSION 0.0 LANGUAGES CXX C)
set(PROJECT_NAME afp)
set(PROJECT_TYPE CXX)
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS FALSE) set(CMAKE_CXX_EXTENSIONS FALSE)
if (CYGWIN OR MSYS OR MINGW)
set(REMAP src/remap_os_error.c) if (WIN32 OR CYGWIN OR MSYS OR MINGW)
if (NOT MSVC)
set(REMAP src/remap_os_error.c)
endif()
endif() endif()
add_library(afp src/finder_info.cpp src/resource_fork.cpp src/xattr.c ${REMAP}) add_library(afp src/finder_info.cpp src/resource_fork.cpp src/xattr.c ${REMAP})