Skip to content

Commit ec1b7ca

Browse files
jefftrullmurraycu
authored andcommitted
CMake: supply SIGC_BUILD and use CMAKE_CXX_STANDARD, for MSVC
1 parent 6447d24 commit ec1b7ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ option (SIGCXX_DISABLE_DEPRECATED "Disable deprecated" OFF)
2828

2929
project (sigc++)
3030

31-
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
31+
set( CMAKE_CXX_STANDARD 17 )
3232

3333
set (PROJECT_SOURCE_DIR "${sigc++_SOURCE_DIR}/sigc++")
3434

sigc++/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_library(${SIGCPP_LIB_NAME} SHARED ${SOURCE_FILES})
2727

2828
set_property (TARGET ${SIGCPP_LIB_NAME} PROPERTY VERSION ${PACKAGE_VERSION})
2929
set_property(TARGET ${SIGCPP_LIB_NAME} PROPERTY SOVERSION ${LIBSIGCPP_SOVERSION})
30+
target_compile_definitions( ${SIGCPP_LIB_NAME} PRIVATE -DSIGC_BUILD )
3031

3132
set (INCLUDE_INSTALL_DIR "include/${PROJECT_NAME}-${SIGCXX_API_VERSION}")
3233

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy