File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ impl super::BuildConfig {
23
23
. define ( "Python3_FIND_FRAMEWORK" , "LAST" )
24
24
// Ensure same installation directory is used on all platforms
25
25
. define ( "LIB_INSTALL_DIR" , INSTALL_DIR )
26
+ // We're building a static library, not an executable, so the try_compile stage of the
27
+ // cmake build should try to compile a static library as well.
28
+ . define ( "CMAKE_TRY_COMPILE_TARGET_TYPE" , "STATIC_LIBRARY" )
26
29
. build_target ( "install" ) ;
27
30
for cflag in & self . cflags {
28
31
cmk. cflag ( cflag) ;
@@ -45,9 +48,6 @@ impl super::BuildConfig {
45
48
// When building on Linux, -rdynamic flag is added automatically. Changing the
46
49
// CMAKE_SYSTEM_NAME to Generic avoids this.
47
50
cmk. define ( "CMAKE_SYSTEM_NAME" , "Generic" ) ;
48
- // The compiler test requires _exit which is not available. By just trying to
49
- // compile a library, we can fix it.
50
- cmk. define ( "CMAKE_TRY_COMPILE_TARGET_TYPE" , "STATIC_LIBRARY" ) ;
51
51
}
52
52
53
53
let dst = cmk. build ( ) ;
You can’t perform that action at this time.
0 commit comments