diff --git a/CMakePresets.json b/CMakePresets.json index fae32028..d3952f1e 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -134,8 +134,7 @@ { "name": "macos-debug", "inherits": [ - "macos-config", - "debug-config" + "macos-config" ], "displayName": "[Debug] MacOS", "description": "Create a debug build using MacOS" @@ -143,8 +142,7 @@ { "name": "macos-release", "inherits": [ - "macos-config", - "release-config" + "macos-config" ], "displayName": "[Release] MacOS", "description": "Create a release build using MacOS" @@ -211,7 +209,6 @@ "configurePreset": "macos-debug", "displayName": "[Debug] MacOS", "description": "This preset is used to build in debug mode on MacOS", - "configuration": "Debug", "jobs": 2 }, { @@ -219,7 +216,6 @@ "configurePreset": "macos-release", "displayName": "[Release] MacOS", "description": "This preset is used to build in release mode on MacOS", - "configuration": "Release", "jobs": 2 } ], diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b4f9d2d0..e8765191 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -6,11 +6,11 @@ include(GoogleTest) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) -#if(APPLE) -# set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True) -# set(CMAKE_BUILD_WITH_INSTALL_RPATH True) -# set(CMAKE_INSTALL_RPATH "@executable_path") -#endif() +if(APPLE) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True) + set(CMAKE_BUILD_WITH_INSTALL_RPATH True) + set(CMAKE_INSTALL_RPATH "@executable_path") +endif() add_custom_target(conncpp_tests ${CMAKE_COMMAND} -E copy $ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})