Correctly place static library spec

This commit is contained in:
Seth Hillbrand 2022-11-22 05:45:26 -08:00
parent 6625afabb7
commit 203f5538aa
3 changed files with 6 additions and 3 deletions

View File

@ -23,9 +23,6 @@
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )
# Default to honoring the visibility settings for static libraries
cmake_policy(SET CMP0063 NEW)
# Default to CMAKE_BUILD_TYPE = Release unless overridden on command line
# http://www.cmake.org/pipermail/cmake/2008-September/023808.html
if( DEFINED CMAKE_BUILD_TYPE )

View File

@ -1,6 +1,9 @@
cmake_policy(PUSH)
cmake_policy(VERSION 3.1)
# Default to honoring the visibility settings for static libraries
cmake_policy(SET CMP0063 NEW)
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)

View File

@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.0.0)
project(nanodbc CXX)
# Default to honoring the visibility settings for static libraries
cmake_policy(SET CMP0063 NEW)
# nanodbc specific options
option(NANODBC_DISABLE_ASYNC "Disable async features entirely" OFF)
option(NANODBC_DISABLE_LIBCXX "Do not use libc++, if available." OFF)