Skip to content

Commit 6992878

Browse files
committed
revert log4cplus cmake
1 parent 43935bb commit 6992878

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

CMake/Dependencies/liblog4cplus-CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.6.3)
22
find_program(MAKE_EXE NAMES make)
33

4-
project(log4cplus-download NONE)
4+
project(log4cplus-download LANGUAGES CXX)
55

66
set(BUILD_SHARED_LIBS 1)
77
if (BUILD_STATIC)
@@ -16,7 +16,11 @@ else()
1616
endif()
1717

1818
if (DEFINED CMAKE_OSX_SYSROOT AND NOT CMAKE_OSX_SYSROOT STREQUAL "")
19-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -isysroot ${CMAKE_OSX_SYSROOT}")
19+
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})
2024
endif()
2125

2226
include(ExternalProject)
@@ -38,4 +42,4 @@ else()
3842
BUILD_ALWAYS TRUE
3943
TEST_COMMAND ""
4044
)
41-
endif()
45+
endif()

0 commit comments

Comments
 (0)