We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43935bb commit 6992878Copy full SHA for 6992878
CMake/Dependencies/liblog4cplus-CMakeLists.txt
@@ -1,7 +1,7 @@
1
cmake_minimum_required(VERSION 3.6.3)
2
find_program(MAKE_EXE NAMES make)
3
4
-project(log4cplus-download NONE)
+project(log4cplus-download LANGUAGES CXX)
5
6
set(BUILD_SHARED_LIBS 1)
7
if (BUILD_STATIC)
@@ -16,7 +16,11 @@ else()
16
endif()
17
18
if (DEFINED CMAKE_OSX_SYSROOT AND NOT CMAKE_OSX_SYSROOT STREQUAL "")
19
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -isysroot ${CMAKE_OSX_SYSROOT}")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -isysroot${CMAKE_OSX_SYSROOT}")
20
+endif()
21
+
22
+if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
23
+ SET(CONFIGURE_COMMAND ${CONFIGURE_STATIC})
24
25
26
include(ExternalProject)
@@ -38,4 +42,4 @@ else()
38
42
BUILD_ALWAYS TRUE
39
43
TEST_COMMAND ""
40
44
)
41
-endif()
45
0 commit comments